@Override
public void processPacket(EntityPlayer player) {
LogisticsTileGenericPipe tile = this.getPipe(player.getEntityWorld());
if(tile == null) return;
try {
tile.renderState.readData(new LPDataInputStream(bytesRenderState));
tile.coreState.readData(new LPDataInputStream(bytesCoreState));
tile.bcCoreState.readData(new LPDataInputStream(bytesBCCoreState));
tile.afterStateUpdated();
tile.pipe.readData(new LPDataInputStream(bytesPipe));
} catch(IOException e) {
throw new RuntimeException(e);
}
}