Package net.minecraft.src

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


   
      NBTTagList nbttaglist = new NBTTagList();
     
      for (int i = 0; i < theInventory.length; ++i) {       
        NBTTagCompound nbttagcompound2 = new NBTTagCompound ();
        nbttaglist.appendTag(nbttagcompound2);
        if (theInventory[i] == null) {
          nbttagcompound2.setBoolean("isNull", true);
        } else {
          nbttagcompound2.setBoolean("isNull", false);
          theInventory[i].writeToNBT(nbttagcompound2);
View Full Code Here


      }

      NBTTagList loreTagList = new NBTTagList();

      for (String l : getLore()) {
        loreTagList.appendTag(new NBTTagString(l));
      }

      itemstack.stackTagCompound.getCompoundTag("display").setTag("Lore", loreTagList);
    }
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.