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 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()

            if (this.furnaceItemStacks[var3] != null)
            {
                NBTTagCompound var4 = new NBTTagCompound();
                var4.setByte("Slot", (byte)var3);
                this.furnaceItemStacks[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 < inventory.length; i++) {
      if(inventory[i] != null) {
        NBTTagCompound itemStackNBT = new NBTTagCompound();
        itemStackNBT.setByte("Slot", (byte) i);
        inventory[i].writeToNBT(itemStackNBT);
        itemList.appendTag(itemStackNBT);
      }
    }
    nbtRoot.setTag("Items", itemList);

    nbtRoot.setInteger("redstoneControlMode", redstoneControlMode.ordinal());
View Full Code Here

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

          for (Vector3 position : this.manipulationVectors)
          {
            if (this.moveBlock(position) && this.isBlockVisibleByPlayer(position) && i < Settings.MAX_FORCE_FIELDS_PER_TICK)
            {
              nbtList.appendTag(position.writeToNBT(new NBTTagCompound()));
              i++;
            }
          }

          if (i > 0)
View Full Code Here

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

          for (Vector3 position : this.getInteriorPoints())
          {
            if (this.isBlockVisibleByPlayer(position) && (this.displayMode == 2 || !this.worldObj.isAirBlock(position.intX(), position.intY(), position.intZ()) && i < Settings.MAX_FORCE_FIELDS_PER_TICK))
            {
              i++;
              nbtList.appendTag(new Vector3(position).writeToNBT(new NBTTagCompound()));
            }
          }

          nbt.setByte("type", (byte) 1);
          nbt.setTag("list", nbtList);
View Full Code Here

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

        NBTTagCompound nbt = new NBTTagCompound();
        NBTTagList nbtList = new NBTTagList();

        for (Vector3 position : this.failedPositions)
        {
          nbtList.appendTag(position.writeToNBT(new NBTTagCompound()));
        }

        nbt.setByte("type", (byte) 1);
        nbt.setTag("list", nbtList);
View Full Code Here

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

    NBTTagCompound nbt = new NBTTagCompound();
    NBTTagList nbtList = new NBTTagList();

    for (Vector3 vector : this.getCalculatedField())
    {
      nbtList.appendTag(vector.writeToNBT(new NBTTagCompound()));
    }

    nbt.setTag("blockList", nbtList);
    PacketDispatcher.sendPacketToAllPlayers(ModularForceFieldSystem.PACKET_TILE.getPacket(this, TilePacketType.FIELD.ordinal(), nbt));
  }
View Full Code Here

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

                      {
                        NBTTagCompound vectorTag = new NBTTagCompound();
                        position.writeToNBT(vectorTag);
                        vectorTag.setInteger(NBT_FIELD_BLOCK_ID, blockID);
                        vectorTag.setInteger(NBT_FIELD_BLOCK_METADATA, targetCheck.getBlockMetadata(world));
                        list.appendTag(vectorTag);
                      }
                      else
                      {
                        for (int i = 0; i < list.tagCount(); i++)
                        {
View Full Code Here

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

      if (this.slots[i] != null)
      {
        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
        nbttagcompound1.setByte("Slot", (byte) i);
        this.slots[i].writeToNBT(nbttagcompound1);
        nbttaglist.appendTag(nbttagcompound1);
      }
    }
    nbt.setTag("Items", nbttaglist);
    if (this.isInvNameLocalized())
    {
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.