use of network.rs485.logisticspipes.util.LPDataInput in project LogisticsPipes by RS485.
the class ExitRoute method readRouter.
@SideOnly(Side.CLIENT)
private IRouter readRouter(LPDataInput input) {
DoubleCoordinates pos = new DoubleCoordinates(input);
TileEntity tile = pos.getTileEntity(MainProxy.getClientMainWorld());
if (tile instanceof LogisticsTileGenericPipe && ((LogisticsTileGenericPipe) tile).pipe instanceof CoreRoutedPipe) {
return ((CoreRoutedPipe) ((LogisticsTileGenericPipe) tile).pipe).getRouter();
}
return null;
}
Aggregations