return (TileRefinery) tile;
}
private void onRefinerySelect(EntityPlayer playerEntity, PacketUpdate packet) throws IOException {
TileRefinery tile = getRefinery(playerEntity.worldObj, packet.posX, packet.posY, packet.posZ);
if (tile == null || packet.payload == null) {
return;
}
ByteBuf stream = packet.payload.stream;
tile.setFilter(stream.readByte(), FluidRegistry.getFluid(stream.readShort()));
}