Package net.minecraft.nbt

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


      {
        //if (ChargingBench.isDebugging) System.out.println("WriteNBT contents[" + i + "] stack tag: " + contents[i].stackTagCompound);
        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
        nbttagcompound1.setByte("Slot", (byte)i);
        contents[i].writeToNBT(nbttagcompound1);
        nbttaglist.appendTag(nbttagcompound1);
      }
    }
    nbttagcompound.setTag("Items", nbttaglist);
  }
View Full Code Here


      {
        //if (ChargingBench.isDebugging) System.out.println("WriteNBT contents[" + i + "] stack tag: " + contents[i].stackTagCompound);
        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
        nbttagcompound1.setByte("Slot", (byte)i);
        contents[i].writeToNBT(nbttagcompound1);
        nbttaglist.appendTag(nbttagcompound1);
      }
    }
    nbttagcompound.setTag("Items", nbttaglist);
  }
View Full Code Here

      {
        //if (ChargingBench.isDebugging) System.out.println("WriteNBT contents[" + i + "] stack tag: " + contents[i].stackTagCompound);
        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
        nbttagcompound1.setByte("Slot", (byte)i);
        contents[i].writeToNBT(nbttagcompound1);
        nbttaglist.appendTag(nbttagcompound1);
      }
    }
    nbttagcompound.setTag("Items", nbttaglist);
  }
View Full Code Here

      {
        NBTTagCompound pin = new NBTTagCompound();
        pin.setInteger("buffer", _pinMappingInputs[c][p].buffer);
        pin.setInteger("pin", _pinMappingInputs[c][p].pin);
       
        inputPins.appendTag(pin);
      }
      circuit.setTag("inputPins", inputPins);
     
      NBTTagList outputPins = new NBTTagList();
      for(int p = 0; p < _pinMappingOutputs[c].length; p++)
View Full Code Here

      {
        NBTTagCompound pin = new NBTTagCompound();
        pin.setInteger("buffer", _pinMappingOutputs[c][p].buffer);
        pin.setInteger("pin", _pinMappingOutputs[c][p].pin);
       
        outputPins.appendTag(pin);
      }
      circuit.setTag("outputPins", outputPins);
     
      NBTTagCompound circuitState = new NBTTagCompound();
      _circuits[c].writeToNBT(circuitState);
View Full Code Here

    for (int i = 0; i < this.stackList.length; ++i) {
      if (this.stackList[i] != null) {
        invSlot = new NBTTagCompound();
        invSlot.setByte("Slot", (byte) i);
        this.stackList[i].writeToNBT(invSlot);
        tagList.appendTag(invSlot);
      }
    }
    tags.setTag("Baubles.Inventory", tagList);
  }
View Full Code Here

        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
        nbttagcompound1.setByte("Tank", (byte)i);
       
        LiquidStack l = _tanks[i].getLiquid();
        l.writeToNBT(nbttagcompound1);
        tanks.appendTag(nbttagcompound1);
      }
    }
   
    nbttagcompound.setTag("Tanks", tanks);
  }
View Full Code Here

       
        _inventory[3] = new ItemStack(Item.enchantedBook, 1);
       
        NBTTagCompound baseTag = new NBTTagCompound();
        NBTTagList enchList = new NBTTagList();
        enchList.appendTag(enchTag);
        baseTag.setTag("StoredEnchantments", enchList);
        _inventory[3].setTagCompound(baseTag);
       
        setWorkDone(0);
      }
View Full Code Here

      if(_inventory[i] != null)
      {
        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
        nbttagcompound1.setByte("Slot", (byte)i);
        _inventory[i].writeToNBT(nbttagcompound1);
        nbttaglist.appendTag(nbttagcompound1);
      }
    }
    if(getTank() != null && getTank().getLiquid() != null)
    {
      LiquidStack fluid = getTank().getLiquid();
View Full Code Here

    NBTTagList nbttaglist = new NBTTagList();
    for (int i = 0; i < sideSettings.length; ++i)
    {
      NBTTagCompound entry = new NBTTagCompound();
      entry.setByte("Flags", sideSettings[i]);
      nbttaglist.appendTag(entry);
    }
    nbttagcompound.setTag("SideSettings", 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.