@Nullable
/**
* Reads a compressed NBTTagCompound from this buffer
*/
public NBTTagCompound readNBTTagCompoundFromBuffer() throws IOException
{
int i = this.readerIndex();
byte b0 = this.readByte();
if (b0 == 0)
{
return null;
}
else
{
this.readerIndex(i);
try
{
return CompressedStreamTools.read(new ByteBufInputStream(this), new NBTSizeTracker(2097152L));
}
catch (IOException ioexception)
{
throw new EncoderException(ioexception);
}
}
}
PacketBuffer.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:Backmemed
作者:
评论列表
文章目录