Java Code Examples for net.minecraft.client.world.ClientWorld#getTileEntity()
The following examples show how to use
net.minecraft.client.world.ClientWorld#getTileEntity() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EnderStorageCPH.java From EnderStorage with MIT License | 5 votes |
private void handleTilePacket(ClientWorld world, PacketCustom packet, BlockPos pos) { TileEntity tile = world.getTileEntity(pos); if (tile instanceof TileFrequencyOwner) { ((TileFrequencyOwner) tile).readFromPacket(packet); } }
Example 2
Source File: EnderStorageCPH.java From EnderStorage with MIT License | 4 votes |
private void handleTankTilePacket(ClientWorld world, BlockPos pos, PacketCustom packet) { TileEntity tile = world.getTileEntity(pos); if (tile instanceof TileEnderTank) { ((TileEnderTank) tile).sync(packet); } }