Package net.minecraft.nbt

Examples of net.minecraft.nbt.NBTTagString


        }

        SortedSet<String> keys = new TreeSet<String>(map.keySet());
        for (String name : keys)
        {
            pages.appendTag(new NBTTagString(name + map.get(name)));
        }

        tag.setString("author", "ForgeEssentials");
        tag.setString("title", "CommandBook");
        tag.setTag("pages", pages);
View Full Code Here


    }

    SortedSet<String> keys = new TreeSet<String>(map.keySet());
    for (String name : keys)
    {
      pages.appendTag(new NBTTagString(name + map.get(name)));
    }

    tag.setString("author", "ForgeEssentials");
    tag.setString("title", file.getName().replace(".txt", ""));
    tag.setTag("pages", pages);
View Full Code Here

    }

    SortedSet<String> keys = new TreeSet<String>(map.keySet());
    for (String name : keys)
    {
      pages.appendTag(new NBTTagString(name + map.get(name)));
    }

    tag.setString("author", "ForgeEssentials");
    tag.setString("title", title);
    tag.setTag("pages", pages);
View Full Code Here

    }

    SortedSet<String> keys = new TreeSet<String>(map.keySet());
    for (String name : keys)
    {
      pages.appendTag(new NBTTagString(name + map.get(name)));
    }

    tag.setString("author", "ForgeEssentials");
    tag.setString("title", file.getName().replace(".txt", ""));
    tag.setTag("pages", pages);
View Full Code Here

    }

    SortedSet<String> keys = new TreeSet<String>(map.keySet());
    for (String name : keys)
    {
      pages.appendTag(new NBTTagString(name + map.get(name)));
    }

    tag.setString("author", "ForgeEssentials");
    tag.setString("title", title);
    tag.setTag("pages", pages);
View Full Code Here

    }

    SortedSet<String> keys = new TreeSet<String>(map.keySet());
    for (String name : keys)
    {
      pages.appendTag(new NBTTagString(name + map.get(name)));
    }

    tag.setString("author", "ForgeEssentials");
    tag.setString("title", folder.getName());
    tag.setTag("pages", pages);
View Full Code Here

    }

    SortedSet<String> keys = new TreeSet<String>(map.keySet());
    for (String name : keys)
    {
      pages.appendTag(new NBTTagString(name + map.get(name)));
    }

    tag.setString("author", "ForgeEssentials");
    tag.setString("title", title);
    tag.setTag("pages", pages);
View Full Code Here

    if (value instanceof Short)   return new NBTTagShort((Short)value);
    if (value instanceof Integer) return new NBTTagInt((Integer)value);
    if (value instanceof Long)    return new NBTTagLong((Long)value);
    if (value instanceof Float)   return new NBTTagFloat((Float)value);
    if (value instanceof Doublereturn new NBTTagDouble((Double)value);
    if (value instanceof Stringreturn new NBTTagString((String)value);
    if (value instanceof byte[])  return new NBTTagByteArray((byte[])value);
    if (value instanceof int[])   return new NBTTagIntArray((int[])value);
    return null;
  }
View Full Code Here

        }
        if(MainProxy.isClient()) {
       NBTTagList list = new NBTTagList();
      String info1 = "Please reopen the window";
      String info2 = "to see the information.";
        list.appendTag(new NBTTagString(info1));
        list.appendTag(new NBTTagString(info2));
        if(!itemStack.hasTagCompound()) {
              itemStack.setTagCompound(new NBTTagCompound());
            }
        NBTTagCompound stacktag = itemStack.getTagCompound();
        stacktag.setTag("informationList", list);
        stacktag.setDouble("Random-Stack-Prevent", new Random().nextDouble());
        return;
    }
        if(!itemStack.hasTagCompound()) {
          itemStack.setTagCompound(new NBTTagCompound());
        }
        NBTTagCompound stacktag = itemStack.getTagCompound();
        stacktag.setTag("moduleInformation", nbt);
        if(module instanceof IClientInformationProvider) {
          List<String> information = ((IClientInformationProvider)module).getClientInformation();
          if(information.size() > 0) {
            NBTTagList list = new NBTTagList();
            for(String info:information) {
              list.appendTag(new NBTTagString(info));
            }
            stacktag.setTag("informationList", list);
          }
        }
    stacktag.setDouble("Random-Stack-Prevent", new Random().nextDouble());
View Full Code Here

            NBTTagList pageNBT = new NBTTagList();
            data.appendTag(pageNBT);
            ListIterator<String> lineIt = page.listIterator();
            while (lineIt.hasNext()) {
                String line = lineIt.next();
                pageNBT.appendTag(new NBTTagString(line));
            }
        }

        NBTTagCompound nbt = InvTools.getItemData(routingTable);
        nbt.setTag("pages", data);
View Full Code Here

TOP

Related Classes of net.minecraft.nbt.NBTTagString

Copyright © 2018 www.massapicom. 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.