Examples of appendTag()


Examples of net.minecraft.nbt.NBTTagList.appendTag()

    for (int var3 = 0; var3 < inventorySlots.length; ++var3) {
      if (inventorySlots[var3] != null) {
        NBTTagCompound var4 = new NBTTagCompound();
        var4.setByte("Slot", (byte) var3);
        inventorySlots[var3].writeToNBT(var4);
        var2.appendTag(var4);
      }
    }
    par1NBTTagCompound.setTag("Items", var2);
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

    for (int i = 0; i < augments.length; i++) {
      if (augments[i] != null) {
        NBTTagCompound tag = new NBTTagCompound();
        tag.setInteger("Slot", i);
        augments[i].writeToNBT(tag);
        list.appendTag(tag);
      }
    }
    nbt.setTag("Augments", list);
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

    for (int i = 0; i < augments.length; i++) {
      if (augments[i] != null) {
        NBTTagCompound tag = new NBTTagCompound();
        tag.setInteger("Slot", i);
        augments[i].writeToNBT(tag);
        list.appendTag(tag);
      }
    }
    stack.stackTagCompound.setTag("Augments", list);
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

            if (this.inventory[var3] != null)
            {
                NBTTagCompound var4 = new NBTTagCompound();
                var4.setByte("Slot", (byte) var3);
                this.inventory[var3].writeToNBT(var4);
                var2.appendTag(var4);
            }
        }
        par1NBTTagCompound.setTag("Items", var2);
    }
   
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

            if (this.inventory[var3] != null)
            {
                NBTTagCompound var4 = new NBTTagCompound();
                var4.setByte("Slot", (byte) var3);
                this.inventory[var3].writeToNBT(var4);
                var2.appendTag(var4);
            }
        }
       
        par1NBTTagCompound.setTag("Items", var2);
       
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

            if (this.inventory[var3] != null)
            {
                NBTTagCompound var4 = new NBTTagCompound();
                var4.setByte("Slot", (byte) var3);
                this.inventory[var3].writeToNBT(var4);
                var2.appendTag(var4);
            }
        }
        par1NBTTagCompound.setTag("Items", var2);
    }
   
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

            if (this.inventory[var3] != null)
            {
                NBTTagCompound var4 = new NBTTagCompound();
                var4.setByte("Slot", (byte) var3);
                this.inventory[var3].writeToNBT(var4);
                var2.appendTag(var4);
            }
        }
        par1NBTTagCompound.setTag("Items", var2);
    }
   
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

        for (int var3 = 0; var3 < inventorySlots.length; ++var3) {
            if (inventorySlots[var3] != null) {
                NBTTagCompound var4 = new NBTTagCompound();
                var4.setByte("Slot", (byte) var3);
                inventorySlots[var3].writeToNBT(var4);
                var2.appendTag(var4);
            }
        }
        cmp.setTag("Items", var2);
    }
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

    for (int var3 = 0; var3 < inventorySlots.length; ++var3) {
      if (inventorySlots[var3] != null) {
        NBTTagCompound var4 = new NBTTagCompound();
        var4.setByte("Slot", (byte) var3);
        inventorySlots[var3].writeToNBT(var4);
        var2.appendTag(var4);
      }
    }
    par1NBTTagCompound.setTag("Items", var2);
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.appendTag()

    NBTTagList nbttaglist = new NBTTagList();
    if (inventorySlots[0] != null) {
      NBTTagCompound tagList = new NBTTagCompound();
      tagList.setByte("Slot", (byte) 0);
      inventorySlots[0].writeToNBT(tagList);
      nbttaglist.appendTag(tagList);
    }
    par1NBTTagCompound.setTag("Items", nbttaglist);
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.