Package net.minecraft.nbt

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


        for(int i = 0; i < inventory.length; i++) {
            if(inventory[i] != null) {
                NBTTagCompound slotEntry = new NBTTagCompound();
                slotEntry.setByte(Constants.NBT.SLOT, (byte) i);
                inventory[i].writeToNBT(slotEntry);
                inventoryList.appendTag(slotEntry);
            }
        }

        backpackSave.setInventory(inventoryName, inventoryList);
    }
View Full Code Here


    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

    for(TransporterStack stack : transit)
    {
      NBTTagCompound tagCompound = new NBTTagCompound();
      stack.write(tagCompound);
      stacks.appendTag(tagCompound);
    }

    if(stacks.tagCount() != 0)
    {
      nbtTags.setTag("stacks", stacks);
View Full Code Here

      if(inventory[slotCount] != null)
      {
        NBTTagCompound tagCompound = new NBTTagCompound();
        tagCompound.setByte("Slot", (byte)slotCount);
        inventory[slotCount].writeToNBT(tagCompound);
        tagList.appendTag(tagCompound);
      }
    }

    nbtTags.setTag("Items", tagList);
  }
View Full Code Here

      if(inventory[slots] != null)
      {
        NBTTagCompound tagCompound = new NBTTagCompound();
        tagCompound.setByte("Slot", (byte)slots);
        inventory[slots].writeToNBT(tagCompound);
        tagList.appendTag(tagCompound);
      }
    }

    return tagList;
  }
View Full Code Here

      if(getStackInSlot(slotCount) != null)
      {
        NBTTagCompound tagCompound = new NBTTagCompound();
        tagCompound.setByte("Slot", (byte)slotCount);
        getStackInSlot(slotCount).writeToNBT(tagCompound);
        tagList.appendTag(tagCompound);
      }
    }

    if(getStack() != null)
    {
View Full Code Here

    for(Coord4D wrapper : recurringNodes)
    {
      NBTTagCompound tagCompound = new NBTTagCompound();
      wrapper.write(tagCompound);
      recurringList.appendTag(tagCompound);
    }

    if(recurringList.tagCount() != 0)
    {
      nbtTags.setTag("recurringNodes", recurringList);
View Full Code Here

    for(Coord4D wrapper : activeNodes)
    {
      NBTTagCompound tagCompound = new NBTTagCompound();
      wrapper.write(tagCompound);
      activeList.appendTag(tagCompound);
    }

    if(activeList.tagCount() != 0)
    {
      nbtTags.setTag("activeNodes", activeList);
View Full Code Here

        if(getStackInSlot(slotCount) != null)
        {
          NBTTagCompound tagCompound = new NBTTagCompound();
          tagCompound.setByte("Slot", (byte)slotCount);
          getStackInSlot(slotCount).writeToNBT(tagCompound);
          tagList.appendTag(tagCompound);
        }
      }

      nbtTags.setTag("Items", tagList);
    }
View Full Code Here

        if(inventory[slots] != null)
        {
          NBTTagCompound tagCompound = new NBTTagCompound();
          tagCompound.setByte("Slot", (byte)slots);
          inventory[slots].writeToNBT(tagCompound);
          tagList.appendTag(tagCompound);
        }
      }
    }

    return tagList;
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.