Пример #1
0
 private static int getEngineScreen(TileEntity te) {
   EngineType e = ((TileEntityEngine) te).getEngineType();
   int ei = (1 + e.ordinal()) / 8;
   return ENGINEDESC.getBaseScreen() + ei;
 }
Пример #2
0
 private static int getEnginePage(TileEntity te) {
   EngineType e = ((TileEntityEngine) te).getEngineType();
   return 1 + e.ordinal() - (getEngineScreen(te) - ENGINEDESC.getBaseScreen()) * 8;
 }