@Override protected GuiComponentLabel createLabel(AutoSlots slot) { switch (slot) { case input: return new GuiComponentLabel( 22, 82, StatCollector.translateToLocal("openblocks.gui.autoextract")); case output: return new GuiComponentLabel( 22, 82, StatCollector.translateToLocal("openblocks.gui.autoeject")); case xp: return new GuiComponentLabel( 22, 82, StatCollector.translateToLocal("openblocks.gui.autodrink")); default: throw MiscUtils.unhandledEnum(slot); } }
@Override protected GuiComponentTab createTab(AutoSlots slot) { switch (slot) { case input: return new GuiComponentTab( StandardPalette.blue.getColor(), new ItemStack(Items.diamond_pickaxe, 1), 100, 100); case output: { ItemStack enchantedAxe = new ItemStack(Items.diamond_pickaxe, 1); enchantedAxe.addEnchantment(Enchantment.fortune, 1); return new GuiComponentTab(StandardPalette.lightblue.getColor(), enchantedAxe, 100, 100); } case xp: return new GuiComponentTab( StandardPalette.green.getColor(), new ItemStack(Items.bucket, 1), 100, 100); default: throw MiscUtils.unhandledEnum(slot); } }