@Override public void onDataPacket( NetworkManager networkManager, S35PacketUpdateTileEntity s35PacketUpdateTileEntity) { readFromNBT(s35PacketUpdateTileEntity.getNbtCompound()); worldObj.markBlockRangeForRenderUpdate(this.pos, this.pos); markForUpdate(); }
/** * Called when you receive a TileEntityData packet for the location this TileEntity is currently * in. On the client, the NetworkManager will always be the remote server. On the server, it will * be whomever is responsible for sending the packet. * * @param net The NetworkManager the packet originated from * @param pkt The data packet */ @Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { if (worldObj.isRemote) { NBTTagCompound nbt = pkt.getNbtCompound(); readFromNBT(nbt); } }
@Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { NBTTagCompound tagCom = pkt.getNbtCompound(); this.readFromNBT(tagCom); }
@Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { readFromNBT(pkt.getNbtCompound()); }
@Override public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { NBTTagCompound compound = pkt.getNbtCompound(); isActive = compound.getBoolean(KEY_IS_ACTIVE); }
@Override public void onDataPacket(final NetworkManager manager, final S35PacketUpdateTileEntity packet) { this.readFromNBT(packet.getNbtCompound()); }