Examples of NBTSizeTracker


Examples of net.minecraft.nbt.NBTSizeTracker

    if (length < 0) {
      return null;
    } else {
      byte[] abyte = new byte[length];
      data.readFully(abyte);
      return FluidStack.loadFluidStackFromNBT(CompressedStreamTools.func_152457_a(abyte, new NBTSizeTracker(2097152L)));
    }
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTSizeTracker

        return null;
      } else {
        byte[] buffer = new byte[size];
        dataIn.readBytes(buffer);
        // TODO I have no idea what I'm doing (byte = 8 bits = buffer.length * 8 ???)
        return CompressedStreamTools.func_152457_a(buffer, new NBTSizeTracker(buffer.length * 8));
      }
    } catch (IOException e) {
      FMLCommonHandler.instance().raiseException(e, "Custom Packet", true);
      return null;
    }
View Full Code Here

Examples of net.minecraft.nbt.NBTSizeTracker

  {
    try {
      byte[] buffer = new byte[input.readInt()];
      input.readBytes(buffer);
     
      return CompressedStreamTools.func_152457_a(buffer, new NBTSizeTracker(2097152L));
    } catch(Exception e) {
      return null;
    }
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTSizeTracker

    if (nbtLength < 0) {
      return null;
    } else {
      byte[] abyte = new byte[nbtLength];
      getByteArray(abyte);
      return CompressedStreamTools.func_152457_a(abyte, new NBTSizeTracker(2097152L));
    }
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTSizeTracker

    if(legth < 0) {
      return null;
    } else {
      byte[] array = new byte[legth];
      this.readFully(array);
      return CompressedStreamTools.func_152457_a(array, new NBTSizeTracker(Long.MAX_VALUE));
    }
   
  }
View Full Code Here

Examples of net.minecraft.nbt.NBTSizeTracker

        if (lenght < 0)
            return null;
        else {
            byte[] nbtData = new byte[lenght];
            dataStream.read(nbtData);
            return CompressedStreamTools.func_152457_a(nbtData, new NBTSizeTracker(2097152L));
        }
    }
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.