@Override public void onReceivePacket(int packetID, ByteArrayDataInput dataStream) throws IOException { super.onReceivePacket(packetID, dataStream); if (this.worldObj.isRemote) { if (packetID == TilePacketType.DESCRIPTION.ordinal() || packetID == TilePacketType.INVENTORY.ordinal()) { this.readFromNBT(PacketManager.readNBTTagCompound(dataStream)); } } }