Package net.minecraft.nbt

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


  public void writeCustomNBT(NBTTagCompound nbtRoot) {
    NBTTagList conduitTags = new NBTTagList();
    for (IConduit conduit : conduits) {
      NBTTagCompound conduitRoot = new NBTTagCompound();
      ConduitUtil.writeToNBT(conduit, conduitRoot);
      conduitTags.appendTag(conduitRoot);
    }
    nbtRoot.setTag("conduits", conduitTags);
    if(facadeId != null) {
      nbtRoot.setString("facadeId", Block.blockRegistry.getNameForObject(facadeId));
    } else {
View Full Code Here


    NBTTagList filterTags = new NBTTagList();

    for(MinerFilter filter : filters)
    {
      filterTags.appendTag(filter.write(new NBTTagCompound()));
    }

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

    NBTTagList filterTags = new NBTTagList();

    for(MinerFilter filter : filters)
    {
      filterTags.appendTag(filter.write(new NBTTagCompound()));
    }

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

    NBTTagList filterTags = new NBTTagList();

    for(MinerFilter filter : filters)
    {
      filterTags.appendTag(filter.write(new NBTTagCompound()));
    }

    if(filterTags.tagCount() != 0)
    {
      itemStack.stackTagCompound.setTag("filters", filterTags);
View Full Code Here

    for(TransporterFilter filter : filters)
    {
      NBTTagCompound tagCompound = new NBTTagCompound();
      filter.write(tagCompound);
      filterTags.appendTag(tagCompound);
    }

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

    for(TransporterFilter filter : filters)
    {
      NBTTagCompound tagCompound = new NBTTagCompound();
      filter.write(tagCompound);
      filterTags.appendTag(tagCompound);
    }

    if(filterTags.tagCount() != 0)
    {
      itemStack.stackTagCompound.setTag("filters", filterTags);
View Full Code Here

    for(TransporterFilter filter : filters)
    {
      NBTTagCompound tagCompound = new NBTTagCompound();
      filter.write(tagCompound);
      filterTags.appendTag(tagCompound);
    }

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

        // amaranth
        NBTTagCompound treeDef = new NBTTagCompound();
        treeDef.setString("treeName", "amaranth");
        treeDef.setString("logs", String.format("%s,2; %s,6; %s,10", getUniqueName(NContent.rareTree), getUniqueName(NContent.rareTree), getUniqueName(NContent.rareTree)));
        treeDef.setString("leaves", String.format("%s,2; %s,10", getUniqueName(NContent.rareLeaves), getUniqueName(NContent.rareLeaves)));
        treeList.appendTag(treeDef);
        // bloodwood
        treeDef = new NBTTagCompound();
        treeDef.setString("treeName", "bloodwood");
        treeDef.setString("logs", String.format("%s", getUniqueName(NContent.bloodwood)));
        treeDef.setString("leaves", String.format("%s,2; %s,10", getUniqueName(NContent.floraLeavesNoColor), getUniqueName(NContent.floraLeavesNoColor)));
View Full Code Here

        // bloodwood
        treeDef = new NBTTagCompound();
        treeDef.setString("treeName", "bloodwood");
        treeDef.setString("logs", String.format("%s", getUniqueName(NContent.bloodwood)));
        treeDef.setString("leaves", String.format("%s,2; %s,10", getUniqueName(NContent.floraLeavesNoColor), getUniqueName(NContent.floraLeavesNoColor)));
        treeList.appendTag(treeDef);
        // darkwood
        treeDef = new NBTTagCompound();
        treeDef.setString("treeName", "darkwood");
        treeDef.setString("logs", String.format("%s,0; %s,4; %s,8", getUniqueName(NContent.darkTree), getUniqueName(NContent.darkTree), getUniqueName(NContent.darkTree)));
        treeDef.setString("leaves", String.format("%s", getUniqueName(NContent.darkLeaves)));
View Full Code Here

        // darkwood
        treeDef = new NBTTagCompound();
        treeDef.setString("treeName", "darkwood");
        treeDef.setString("logs", String.format("%s,0; %s,4; %s,8", getUniqueName(NContent.darkTree), getUniqueName(NContent.darkTree), getUniqueName(NContent.darkTree)));
        treeDef.setString("leaves", String.format("%s", getUniqueName(NContent.darkLeaves)));
        treeList.appendTag(treeDef);
        // eucalyptus
        treeDef = new NBTTagCompound();
        treeDef.setString("treeName", "eucalyptus");
        treeDef.setString("logs", String.format("%s,0; %s,4; %s,8", getUniqueName(NContent.tree), getUniqueName(NContent.tree), getUniqueName(NContent.tree)));
        treeDef.setString("leaves", String.format("%s,1; %s,9", getUniqueName(NContent.floraLeaves), getUniqueName(NContent.floraLeaves)));
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.