TileEngineWithInventory engine = (TileEngineWithInventory) tile;
switch (id) {
case GuiIds.ENGINE_IRON:
return new GuiCombustionEngine(player.inventory, (TileEngineIron) engine);
case GuiIds.ENGINE_STONE:
return new GuiStoneEngine(player.inventory, (TileEngineStone) engine);
default: