public PacketDescription(NBTTagCompound compound) {
super(NBTUtil.getPosFromTag(compound.getCompoundTag("Pos")));
type = IDescSynced.Type.values()[compound.getInteger("SyncType")];
values = new Object[compound.getInteger("Length")];
types = new byte[values.length];
NBTTagList list = compound.getTagList("Data", Constants.NBT.TAG_COMPOUND);
for (int i = 0; i < values.length; i++) {
NBTTagCompound element = list.getCompoundTagAt(i);
types[i] = element.getByte("Type");
byte[] b = element.getByteArray("Value");
values[i] = PacketUpdateGui.readField(Unpooled.wrappedBuffer(b), types[i]);
}
extraData = compound.getCompoundTag("Extra");
}
PacketDescription.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:pnc-repressurized
作者:
评论列表
文章目录