Examples of NBTBase


Examples of net.minecraft.nbt.NBTBase

    int x = 0;
    for (IAEItemStack v : cellItems)
    {
      itemCount += v.getStackSize();

      NBTBase c = tagCompound.getTag( ITEM_SLOT_ARR[x] );
      if ( c instanceof NBTTagCompound )
      {
        v.writeToNBT( (NBTTagCompound) c );
      }
      else
View Full Code Here

Examples of net.minecraft.nbt.NBTBase

     * Retrieves a byte value using the specified key, or 0 if no such key was
     * stored.
     */
    public byte getByte(String key) {
        if (data.hasKey(key)) {
            NBTBase tag = data.getTag(key);
            if (tag instanceof NBTTagByte)
                return ((NBTTagByte) tag).func_150290_f();
            else if (tag instanceof NBTTagShort)
                return ((NBTTagShort) tag).func_150290_f();
            else if (tag instanceof NBTTagInt)
View Full Code Here

Examples of net.minecraft.nbt.NBTBase

     * Retrieves a short value using the specified key, or 0 if no such key was
     * stored.
     */
    public short getShort(String key) {
        if (data.hasKey(key)) {
            NBTBase tag = data.getTag(key);
            if (tag instanceof NBTTagShort)
                return ((NBTTagShort) tag).func_150289_e();
            else if (tag instanceof NBTTagInt)
                return ((NBTTagInt) tag).func_150289_e();
            else if (tag instanceof NBTTagByte)
View Full Code Here

Examples of net.minecraft.nbt.NBTBase

     * Retrieves an integer value using the specified key, or 0 if no such key
     * was stored.
     */
    public int getInteger(String key) {
        if (data.hasKey(key)) {
            NBTBase tag = data.getTag(key);
            if (tag instanceof NBTTagInt)
                return ((NBTTagInt) tag).func_150287_d();
            else if (tag instanceof NBTTagShort)
                return ((NBTTagShort) tag).func_150287_d();
            else if (tag instanceof NBTTagByte)
View Full Code Here

Examples of net.minecraft.nbt.NBTBase

     * Retrieves a float value using the specified key, or 0 if no such key was
     * stored.
     */
    public float getFloat(String key) {
        if (data.hasKey(key)) {
            NBTBase tag = data.getTag(key);
            if (tag instanceof NBTTagFloat)
                return ((NBTTagFloat) tag).func_150288_h();
            else if (tag instanceof NBTTagDouble)
                return ((NBTTagDouble) tag).func_150288_h();
        }
View Full Code Here

Examples of net.minecraft.nbt.NBTBase

     * Retrieves a double value using the specified key, or 0 if no such key was
     * stored.
     */
    public double getDouble(String key) {
        if (data.hasKey(key)) {
            NBTBase tag = data.getTag(key);
            if (tag instanceof NBTTagFloat)
                return ((NBTTagFloat) tag).func_150286_g();
            else if (tag instanceof NBTTagDouble)
                return ((NBTTagDouble) tag).func_150286_g();
            else if (tag instanceof NBTTagInt)
View Full Code Here

Examples of net.minecraft.nbt.NBTBase

            {
                String stringNBTData = func_147178_a(commandSender, args, 4).getUnformattedText();

                try
                {
                    NBTBase nbtBase = JsonToNBT.func_150315_a(stringNBTData);

                    if (!(nbtBase instanceof NBTTagCompound))
                    {
                        func_152373_a(commandSender, this, "command.ee3.set-value.tagError", new Object[]{"Not a valid tag"});
                        return;
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.