コード例 #1
0
 public Namespace(Datapack dp, string name)
 {
     this.Name     = name;
     this.Datapack = dp;
     this.Path     = dp.DataFolder.FullName + "/" + name;
     Directory.CreateDirectory(Path);
     Namespaces.Add(this);
 }
コード例 #2
0
 public void AddLoadObjective(Objective objective, string criteria)
 {
     if (LoadFunction == null)
     {
         LoadFunction = new MCFunction(new ResourceLocation(this, "init"));
         Datapack.CreateLoadTag(LoadFunction.Id);
     }
     LoadFunction.AddScoreCreation(objective, criteria);
 }