Examples of tagAt()


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

        }
       
        NBTTagList var2 = par1NBTTagCompound.getTagList("Items");
        for (int var3 = 0; var3 < var2.tagCount(); ++var3)
        {
            NBTTagCompound var4 = (NBTTagCompound) var2.tagAt(var3);
            byte var5 = var4.getByte("Slot");
           
            if (var5 >= 0 && var5 < this.inventory.length)
            {
                this.inventory[var5] = ItemStack.loadItemStackFromNBT(var4);
View Full Code Here

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

        NBTTagList var2 = par1NBTTagCompound.getTagList("Items");
        this.inventory = new ItemStack[OTHER_SIZE + UPGRADE_SIZE];
       
        for (int i = 0; i < var2.tagCount(); i++)
        {
            NBTTagCompound tag = (NBTTagCompound) var2.tagAt(i);
            byte var5 = tag.getByte("Slot");
           
            if (var5 >= 0 && var5 < this.inventory.length)
            {
                this.inventory[var5] = ItemStack.loadItemStackFromNBT(tag);
View Full Code Here

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

        {
        }
       
        for (int var3 = 0; var3 < var2.tagCount(); var3++)
        {
            NBTTagCompound var4 = (NBTTagCompound) var2.tagAt(var3);
            byte var5 = var4.getByte("Slot");
           
            if (var5 >= 0 && var5 < this.inventory.length)
            {
                this.inventory[var5] = ItemStack.loadItemStackFromNBT(var4);
View Full Code Here

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

        super.readFromNBT(par1NBTTagCompound);
       
        NBTTagList var2 = par1NBTTagCompound.getTagList("Items");
        for (int var3 = 0; var3 < var2.tagCount(); ++var3)
        {
            NBTTagCompound var4 = (NBTTagCompound) var2.tagAt(var3);
            byte var5 = var4.getByte("Slot");
           
            if (var5 >= 0 && var5 < this.inventory.length)
            {
                this.inventory[var5] = ItemStack.loadItemStackFromNBT(var4);
View Full Code Here

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

        NBTTagList var2 = par1NBTTagCompound.getTagList("Items");
        this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];

        for (int var3 = 0; var3 < var2.tagCount(); ++var3)
        {
            NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);
            byte var5 = var4.getByte("Slot");

            if (var5 >= 0 && var5 < this.furnaceItemStacks.length)
            {
                this.furnaceItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);
View Full Code Here

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

            NBTTagList nbtList = (NBTTagList) nbt.getTag("list");

            for (int i = 0; i < nbtList.tagCount(); i++)
            {
              Vector3 vector = new Vector3((NBTTagCompound) nbtList.tagAt(i)).translate(0.5);

              if (type == 1)
              {
                // Blue, PREVIEW
                ModularForceFieldSystem.proxy.renderHologram(this.worldObj, vector, 1, 1, 1, 30, vector.clone().translate(this.getDirection()));
View Full Code Here

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

            NBTTagList nbtList = (NBTTagList) nbt.getTag("list");

            for (int i = 0; i < nbtList.tagCount(); i++)
            {
              // Render hologram for starting position
              Vector3 vector = new Vector3((NBTTagCompound) nbtList.tagAt(i)).translate(0.5);

              if (isPreview)
              {
                ModularForceFieldSystem.proxy.renderHologramOrbit(this, this.worldObj, anchorPosition, vector, 1, 1, 1, animationTime, 30f);
              }
View Full Code Here

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

            NBTTagList nbtList = (NBTTagList) nbt.getTag("list");

            for (int i = 0; i < nbtList.tagCount(); i++)
            {
              Vector3 vector = new Vector3((NBTTagCompound) nbtList.tagAt(i)).translate(0.5);
              ModularForceFieldSystem.proxy.renderHologram(this.worldObj, vector, 1, 0, 0, 30, null);
            }

            break;
          }
View Full Code Here

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

        NBTTagCompound nbt = PacketHandler.readNBTTagCompound(dataStream);
        NBTTagList nbtList = nbt.getTagList("blockList");

        for (int i = 0; i < nbtList.tagCount(); i++)
        {
          NBTTagCompound tagAt = (NBTTagCompound) nbtList.tagAt(i);
          this.getCalculatedField().add(new Vector3(tagAt));
        }

        this.isCalculated = true;
      }
View Full Code Here

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

                      }
                      else
                      {
                        for (int i = 0; i < list.tagCount(); i++)
                        {
                          Vector3 vector = new Vector3((NBTTagCompound) list.tagAt(i));

                          if (vector.equals(position))
                          {
                            list.removeTag(i);
                          }
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.