Search in sources :

Example 1 with TranslationButton

use of mekanism.client.gui.element.button.TranslationButton in project Mekanism by mekanism.

the class GuiQIOFilterHandler method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiQIOFrequencyTab(this, tile));
    addButton(new GuiInnerScreen(this, 9, 16, imageWidth - 18, 12, () -> {
        List<ITextComponent> list = new ArrayList<>();
        QIOFrequency freq = tile.getQIOFrequency();
        if (freq == null) {
            list.add(MekanismLang.NO_FREQUENCY.translate());
        } else {
            list.add(MekanismLang.FREQUENCY.translate(freq.getKey()));
        }
        return list;
    }).tooltip(() -> {
        List<ITextComponent> list = new ArrayList<>();
        QIOFrequency freq = tile.getQIOFrequency();
        if (freq != null) {
            list.add(MekanismLang.QIO_ITEMS_DETAIL.translateColored(EnumColor.GRAY, EnumColor.INDIGO, TextUtils.format(freq.getTotalItemCount()), TextUtils.format(freq.getTotalItemCountCapacity())));
            list.add(MekanismLang.QIO_TYPES_DETAIL.translateColored(EnumColor.GRAY, EnumColor.INDIGO, TextUtils.format(freq.getTotalItemTypes(true)), TextUtils.format(freq.getTotalItemTypeCapacity())));
        }
        return list;
    }));
    // Filter holder
    addButton(new GuiElementHolder(this, 9, 30, 144, 68));
    // new filter button border
    addButton(new GuiElementHolder(this, 9, 98, 144, 22));
    addButton(new TranslationButton(this, 10, 99, 142, 20, MekanismLang.BUTTON_NEW_FILTER, () -> addWindow(new GuiQIOFilerSelect(this, tile))));
    scrollBar = addButton(new GuiScrollBar(this, 153, 30, 90, () -> tile.getFilters().size(), () -> FILTER_COUNT));
    // Add each of the buttons and then just change visibility state to match filter info
    for (int i = 0; i < FILTER_COUNT; i++) {
        addButton(new MovableFilterButton(this, 10, 31 + i * 22, 142, 22, i, scrollBar::getCurrentSelection, tile::getFilters, index -> {
            if (index > 0) {
                Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.MOVE_FILTER_UP, tile, index));
            }
        }, index -> {
            if (index < tile.getFilters().size() - 1) {
                Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.MOVE_FILTER_DOWN, tile, index));
            }
        }, this::onClick, filter -> {
            List<ItemStack> list = new ArrayList<>();
            if (filter != null) {
                if (filter instanceof IItemStackFilter) {
                    list.add(((IItemStackFilter<?>) filter).getItemStack());
                } else if (filter instanceof ITagFilter) {
                    String name = ((ITagFilter<?>) filter).getTagName();
                    if (name != null && !name.isEmpty()) {
                        list.addAll(TagCache.getItemTagStacks(((ITagFilter<?>) filter).getTagName()));
                    }
                } else if (filter instanceof IModIDFilter) {
                    list.addAll(TagCache.getModIDStacks(((IModIDFilter<?>) filter).getModID(), false));
                }
            }
            return list;
        }));
    }
}
Also used : EnumColor(mekanism.api.text.EnumColor) TextUtils(mekanism.common.util.text.TextUtils) GuiElementHolder(mekanism.client.gui.element.GuiElementHolder) PacketGuiInteract(mekanism.common.network.to_server.PacketGuiInteract) QIOTagFilter(mekanism.common.content.qio.filter.QIOTagFilter) GuiQIOTagFilter(mekanism.client.gui.element.window.filter.qio.GuiQIOTagFilter) ArrayList(java.util.ArrayList) QIOItemStackFilter(mekanism.common.content.qio.filter.QIOItemStackFilter) ITextComponent(net.minecraft.util.text.ITextComponent) ItemStack(net.minecraft.item.ItemStack) GuiQIOFrequencyTab(mekanism.client.gui.element.tab.GuiQIOFrequencyTab) QIOFrequency(mekanism.common.content.qio.QIOFrequency) GuiScrollBar(mekanism.client.gui.element.scroll.GuiScrollBar) Nonnull(javax.annotation.Nonnull) MovableFilterButton(mekanism.client.gui.element.button.MovableFilterButton) MatrixStack(com.mojang.blaze3d.matrix.MatrixStack) TileEntityQIOFilterHandler(mekanism.common.tile.qio.TileEntityQIOFilterHandler) TranslationButton(mekanism.client.gui.element.button.TranslationButton) Mekanism(mekanism.common.Mekanism) PlayerInventory(net.minecraft.entity.player.PlayerInventory) GuiQIOItemStackFilter(mekanism.client.gui.element.window.filter.qio.GuiQIOItemStackFilter) ITagFilter(mekanism.common.content.filter.ITagFilter) GuiInnerScreen(mekanism.client.gui.element.GuiInnerScreen) List(java.util.List) IItemStackFilter(mekanism.common.content.filter.IItemStackFilter) IModIDFilter(mekanism.common.content.filter.IModIDFilter) MekanismTileContainer(mekanism.common.inventory.container.tile.MekanismTileContainer) GuiInteraction(mekanism.common.network.to_server.PacketGuiInteract.GuiInteraction) QIOModIDFilter(mekanism.common.content.qio.filter.QIOModIDFilter) MekanismLang(mekanism.common.MekanismLang) IFilter(mekanism.common.content.filter.IFilter) GuiQIOModIDFilter(mekanism.client.gui.element.window.filter.qio.GuiQIOModIDFilter) GuiMekanismTile(mekanism.client.gui.GuiMekanismTile) TagCache(mekanism.common.base.TagCache) TranslationButton(mekanism.client.gui.element.button.TranslationButton) ITextComponent(net.minecraft.util.text.ITextComponent) ArrayList(java.util.ArrayList) GuiScrollBar(mekanism.client.gui.element.scroll.GuiScrollBar) GuiQIOFrequencyTab(mekanism.client.gui.element.tab.GuiQIOFrequencyTab) PacketGuiInteract(mekanism.common.network.to_server.PacketGuiInteract) MovableFilterButton(mekanism.client.gui.element.button.MovableFilterButton) ITagFilter(mekanism.common.content.filter.ITagFilter) GuiInnerScreen(mekanism.client.gui.element.GuiInnerScreen) IItemStackFilter(mekanism.common.content.filter.IItemStackFilter) GuiElementHolder(mekanism.client.gui.element.GuiElementHolder) ArrayList(java.util.ArrayList) List(java.util.List) IModIDFilter(mekanism.common.content.filter.IModIDFilter) QIOFrequency(mekanism.common.content.qio.QIOFrequency)

Example 2 with TranslationButton

use of mekanism.client.gui.element.button.TranslationButton in project Mekanism by mekanism.

the class GuiModuleTweaker method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    moduleScreen = addButton(new GuiModuleScreen(this, 138, 20, () -> menu.slots.get(selected).getSlotIndex()));
    scrollList = addButton(new GuiModuleScrollList(this, 30, 20, 108, 116, () -> getStack(selected), this::onModuleSelected));
    addButton(new GuiElementHolder(this, 30, 136, 108, 18));
    optionsButton = addButton(new TranslationButton(this, 31, 137, 106, 16, MekanismLang.BUTTON_OPTIONS, this::openOptions));
    optionsButton.active = false;
    int size = menu.slots.size();
    for (int i = 0; i < size; i++) {
        Slot slot = menu.slots.get(i);
        final int index = i;
        // initialize selected item
        if (selected == -1 && isValidItem(index)) {
            select(index);
        }
        addButton(new GuiSlot(SlotType.NORMAL, this, slot.x - 1, slot.y - 1).click((e, x, y) -> select(index)).overlayColor(isValidItem(index) ? null : () -> 0xCC333333).with(() -> index == selected ? SlotOverlay.SELECT : null));
    }
}
Also used : GuiModuleScreen(mekanism.client.gui.element.custom.GuiModuleScreen) TranslationButton(mekanism.client.gui.element.button.TranslationButton) GuiModuleScreen(mekanism.client.gui.element.custom.GuiModuleScreen) ModuleTweakerContainer(mekanism.common.inventory.container.ModuleTweakerContainer) PlayerInventory(net.minecraft.entity.player.PlayerInventory) SlotOverlay(mekanism.common.inventory.container.slot.SlotOverlay) GuiElementHolder(mekanism.client.gui.element.GuiElementHolder) GuiModuleScrollList(mekanism.client.gui.element.scroll.GuiModuleScrollList) SlotType(mekanism.client.gui.element.slot.SlotType) GLFW(org.lwjgl.glfw.GLFW) ITextComponent(net.minecraft.util.text.ITextComponent) ItemStack(net.minecraft.item.ItemStack) IntList(it.unimi.dsi.fastutil.ints.IntList) Slot(net.minecraft.inventory.container.Slot) MekanismLang(mekanism.common.MekanismLang) Module(mekanism.common.content.gear.Module) GuiMekaSuitHelmetOptions(mekanism.client.gui.element.window.GuiMekaSuitHelmetOptions) MekanismItems(mekanism.common.registries.MekanismItems) Nonnull(javax.annotation.Nonnull) MatrixStack(com.mojang.blaze3d.matrix.MatrixStack) IntArrayList(it.unimi.dsi.fastutil.ints.IntArrayList) GuiSlot(mekanism.client.gui.element.slot.GuiSlot) TranslationButton(mekanism.client.gui.element.button.TranslationButton) GuiElementHolder(mekanism.client.gui.element.GuiElementHolder) Slot(net.minecraft.inventory.container.Slot) GuiSlot(mekanism.client.gui.element.slot.GuiSlot) GuiSlot(mekanism.client.gui.element.slot.GuiSlot) GuiModuleScrollList(mekanism.client.gui.element.scroll.GuiModuleScrollList)

Example 3 with TranslationButton

use of mekanism.client.gui.element.button.TranslationButton in project Mekanism by mekanism.

the class GuiLogisticalSorter method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiSlot(SlotType.NORMAL, this, 12, 136).setRenderAboveSlots());
    addButton(new TranslationButton(this, 56, 136, 96, 20, MekanismLang.BUTTON_NEW_FILTER, () -> addWindow(new GuiSorterFilerSelect(this, tile))));
    addButton(new MekanismImageButton(this, 12, 58, 14, getButtonLocation("single"), () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.SINGLE_ITEM_BUTTON, tile)), getOnHover(MekanismLang.SORTER_SINGLE_ITEM_DESCRIPTION)));
    addButton(new MekanismImageButton(this, 12, 84, 14, getButtonLocation("round_robin"), () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.ROUND_ROBIN_BUTTON, tile)), getOnHover(MekanismLang.SORTER_ROUND_ROBIN_DESCRIPTION)));
    addButton(new MekanismImageButton(this, 12, 110, 14, getButtonLocation("auto_eject"), () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.AUTO_EJECT_BUTTON, tile)), getOnHover(MekanismLang.SORTER_AUTO_EJECT_DESCRIPTION)));
    addButton(new ColorButton(this, 13, 137, 16, 16, () -> tile.color, () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.CHANGE_COLOR, tile, hasShiftDown() ? -1 : TransporterUtils.getColorIndex(TransporterUtils.increment(tile.color)))), () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.CHANGE_COLOR, tile, TransporterUtils.getColorIndex(TransporterUtils.decrement(tile.color))))));
}
Also used : ColorButton(mekanism.client.gui.element.button.ColorButton) TranslationButton(mekanism.client.gui.element.button.TranslationButton) GuiSlot(mekanism.client.gui.element.slot.GuiSlot) MekanismImageButton(mekanism.client.gui.element.button.MekanismImageButton) PacketGuiInteract(mekanism.common.network.to_server.PacketGuiInteract) GuiSorterFilerSelect(mekanism.client.gui.element.window.filter.transporter.GuiSorterFilerSelect)

Example 4 with TranslationButton

use of mekanism.client.gui.element.button.TranslationButton in project Mekanism by mekanism.

the class GuiFissionReactor method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiFissionReactorTab(this, tile, FissionReactorTab.STAT));
    addButton(new GuiInnerScreen(this, 45, 17, 105, 56, () -> {
        FissionReactorMultiblockData multiblock = tile.getMultiblock();
        return Arrays.asList(MekanismLang.STATUS.translate(multiblock.isActive() ? EnumColor.BRIGHT_GREEN : EnumColor.RED, ActiveDisabled.of(multiblock.isActive())), GeneratorsLang.GAS_BURN_RATE.translate(multiblock.lastBurnRate), GeneratorsLang.FISSION_HEATING_RATE.translate(TextUtils.format(multiblock.lastBoilRate)), MekanismLang.TEMPERATURE.translate(tile.getTempColor(), MekanismUtils.getTemperatureDisplay(multiblock.heatCapacitor.getTemperature(), TemperatureUnit.KELVIN, true)), GeneratorsLang.FISSION_DAMAGE.translate(tile.getDamageColor(), tile.getDamageString()));
    }).spacing(2).jeiCategories(JEI_LOCATION));
    addButton(new GuiHybridGauge(() -> tile.getMultiblock().gasCoolantTank, () -> tile.getMultiblock().getGasTanks(null), () -> tile.getMultiblock().fluidCoolantTank, () -> tile.getMultiblock().getFluidTanks(null), GaugeType.STANDARD, this, 6, 13).setLabel(GeneratorsLang.FISSION_COOLANT_TANK.translateColored(EnumColor.AQUA)));
    addButton(new GuiGasGauge(() -> tile.getMultiblock().fuelTank, () -> tile.getMultiblock().getGasTanks(null), GaugeType.STANDARD, this, 25, 13).setLabel(GeneratorsLang.FISSION_FUEL_TANK.translateColored(EnumColor.DARK_GREEN)));
    addButton(new GuiGasGauge(() -> tile.getMultiblock().heatedCoolantTank, () -> tile.getMultiblock().getGasTanks(null), GaugeType.STANDARD, this, 152, 13).setLabel(GeneratorsLang.FISSION_HEATED_COOLANT_TANK.translateColored(EnumColor.ORANGE)));
    addButton(new GuiGasGauge(() -> tile.getMultiblock().wasteTank, () -> tile.getMultiblock().getGasTanks(null), GaugeType.STANDARD, this, 171, 13).setLabel(GeneratorsLang.FISSION_WASTE_TANK.translateColored(EnumColor.BROWN)));
    addButton(new GuiHeatTab(this, () -> {
        ITextComponent environment = MekanismUtils.getTemperatureDisplay(tile.getMultiblock().lastEnvironmentLoss, TemperatureUnit.KELVIN, false);
        return Collections.singletonList(MekanismLang.DISSIPATED_RATE.translate(environment));
    }));
    activateButton = addButton(new TranslationButton(this, 6, 75, 81, 16, GeneratorsLang.FISSION_ACTIVATE, () -> MekanismGenerators.packetHandler.sendToServer(new PacketGeneratorsGuiInteract(GeneratorsGuiInteraction.FISSION_ACTIVE, tile, 1)), null, () -> EnumColor.DARK_GREEN) {

        @Override
        public void renderForeground(MatrixStack matrix, int mouseX, int mouseY) {
            super.renderForeground(matrix, mouseX, mouseY);
            if (!active && tile.getMultiblock().isForceDisabled()) {
                active = true;
                // Temporarily set active to true, so we can easily check if the mouse is over the button
                if (isMouseOverCheckWindows(mouseX, mouseY)) {
                    displayTooltip(matrix, GeneratorsLang.FISSION_FORCE_DISABLED.translate(), mouseX - getGuiLeft(), mouseY - getGuiTop());
                }
                active = false;
            }
        }
    });
    scramButton = addButton(new TranslationButton(this, 89, 75, 81, 16, GeneratorsLang.FISSION_SCRAM, () -> MekanismGenerators.packetHandler.sendToServer(new PacketGeneratorsGuiInteract(GeneratorsGuiInteraction.FISSION_ACTIVE, tile, 0)), null, () -> EnumColor.DARK_RED));
    addButton(new GuiBigLight(this, 173, 76, tile.getMultiblock()::isActive));
    addButton(new GuiDynamicHorizontalRateBar(this, new IBarInfoHandler() {

        @Override
        public ITextComponent getTooltip() {
            return MekanismUtils.getTemperatureDisplay(tile.getMultiblock().heatCapacitor.getTemperature(), TemperatureUnit.KELVIN, true);
        }

        @Override
        public double getLevel() {
            return Math.min(1, tile.getMultiblock().heatCapacitor.getTemperature() / FissionReactorMultiblockData.MAX_DAMAGE_TEMPERATURE);
        }
    }, 5, 102, imageWidth - 12));
    heatGraph = addButton(new GuiGraph(this, 5, 123, imageWidth - 10, 38, temp -> MekanismUtils.getTemperatureDisplay(temp, TemperatureUnit.KELVIN, true)));
    heatGraph.setMinScale(1_600);
    updateButtons();
}
Also used : GuiFissionReactorTab(mekanism.generators.client.gui.element.GuiFissionReactorTab) IBarInfoHandler(mekanism.client.gui.element.bar.GuiBar.IBarInfoHandler) GuiGraph(mekanism.client.gui.element.GuiGraph) TranslationButton(mekanism.client.gui.element.button.TranslationButton) MatrixStack(com.mojang.blaze3d.matrix.MatrixStack) GuiGasGauge(mekanism.client.gui.element.gauge.GuiGasGauge) ITextComponent(net.minecraft.util.text.ITextComponent) FissionReactorMultiblockData(mekanism.generators.common.content.fission.FissionReactorMultiblockData) GuiHeatTab(mekanism.client.gui.element.tab.GuiHeatTab) GuiHybridGauge(mekanism.client.gui.element.gauge.GuiHybridGauge) PacketGeneratorsGuiInteract(mekanism.generators.common.network.to_server.PacketGeneratorsGuiInteract) GuiInnerScreen(mekanism.client.gui.element.GuiInnerScreen) GuiDynamicHorizontalRateBar(mekanism.client.gui.element.bar.GuiDynamicHorizontalRateBar) GuiBigLight(mekanism.client.gui.element.GuiBigLight)

Example 5 with TranslationButton

use of mekanism.client.gui.element.button.TranslationButton in project Mekanism by mekanism.

the class GuiDigitalMiner method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiInnerScreen(this, 7, 19, 77, 69, () -> {
        List<ITextComponent> list = new ArrayList<>();
        ILangEntry runningType;
        if (tile.getEnergyContainer().getEnergyPerTick().greaterThan(tile.getEnergyContainer().getMaxEnergy())) {
            runningType = MekanismLang.MINER_LOW_POWER;
        } else if (tile.isRunning()) {
            runningType = MekanismLang.MINER_RUNNING;
        } else {
            runningType = MekanismLang.IDLE;
        }
        list.add(runningType.translate());
        list.add(tile.searcher.state.getTextComponent());
        list.add(MekanismLang.MINER_TO_MINE.translate(TextUtils.format(tile.getToMine())));
        return list;
    }).spacing(1).clearFormat());
    addButton(new GuiDigitalSwitch(this, 19, 56, EJECT, tile::getDoEject, MekanismLang.AUTO_EJECT.translate(), () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.AUTO_EJECT_BUTTON, tile)), SwitchType.LOWER_ICON));
    addButton(new GuiDigitalSwitch(this, 38, 56, INPUT, tile::getDoPull, MekanismLang.AUTO_PULL.translate(), () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.AUTO_PULL_BUTTON, tile)), SwitchType.LOWER_ICON));
    addButton(new GuiDigitalSwitch(this, 57, 56, SILK, tile::getSilkTouch, MekanismLang.MINER_SILK.translate(), () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.SILK_TOUCH_BUTTON, tile)), SwitchType.LOWER_ICON));
    addButton(new GuiVerticalPowerBar(this, tile.getEnergyContainer(), 157, 39, 47));
    addButton(new GuiVisualsTab(this, tile));
    addButton(new GuiSlot(SlotType.DIGITAL, this, 64, 21).setRenderAboveSlots().validity(() -> tile.missingStack).with(() -> tile.missingStack.isEmpty() ? SlotOverlay.CHECK : null).hover(getOnHover(() -> tile.missingStack.isEmpty() ? MekanismLang.MINER_WELL.translate() : MekanismLang.MINER_MISSING_BLOCK.translate())));
    addButton(new GuiEnergyTab(this, () -> {
        MinerEnergyContainer energyContainer = tile.getEnergyContainer();
        FloatingLong perTick = energyContainer.getEnergyPerTick();
        ArrayList<ITextComponent> ret = new ArrayList<>(4);
        ret.add(MekanismLang.MINER_ENERGY_CAPACITY.translate(EnergyDisplay.of(energyContainer.getMaxEnergy())));
        ret.add(MekanismLang.NEEDED_PER_TICK.translate(EnergyDisplay.of(perTick)));
        if (perTick.greaterThan(energyContainer.getMaxEnergy())) {
            ret.add(MekanismLang.MINER_INSUFFICIENT_BUFFER.translateColored(EnumColor.RED));
        }
        ret.add(MekanismLang.MINER_BUFFER_FREE.translate(EnergyDisplay.of(energyContainer.getNeeded())));
        return ret;
    }));
    int buttonStart = 19;
    startButton = addButton(new TranslationButton(this, 87, buttonStart, 61, 18, MekanismLang.BUTTON_START, () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.START_BUTTON, tile))));
    stopButton = addButton(new TranslationButton(this, 87, buttonStart + 17, 61, 18, MekanismLang.BUTTON_STOP, () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.STOP_BUTTON, tile))));
    configButton = addButton(new TranslationButton(this, 87, buttonStart + 34, 61, 18, MekanismLang.BUTTON_CONFIG, () -> Mekanism.packetHandler.sendToServer(new PacketGuiButtonPress(ClickedTileButton.DIGITAL_MINER_CONFIG, tile))));
    addButton(new TranslationButton(this, 87, buttonStart + 51, 61, 18, MekanismLang.MINER_RESET, () -> Mekanism.packetHandler.sendToServer(new PacketGuiInteract(GuiInteraction.RESET_BUTTON, tile))));
    updateEnabledButtons();
    trackWarning(WarningType.FILTER_HAS_BLACKLISTED_ELEMENT, () -> tile.getFilters().stream().anyMatch(MinerFilter::hasBlacklistedElement));
}
Also used : PacketGuiButtonPress(mekanism.common.network.to_server.PacketGuiButtonPress) TranslationButton(mekanism.client.gui.element.button.TranslationButton) GuiDigitalSwitch(mekanism.client.gui.element.GuiDigitalSwitch) ArrayList(java.util.ArrayList) GuiSlot(mekanism.client.gui.element.slot.GuiSlot) PacketGuiInteract(mekanism.common.network.to_server.PacketGuiInteract) GuiVerticalPowerBar(mekanism.client.gui.element.bar.GuiVerticalPowerBar) GuiEnergyTab(mekanism.client.gui.element.tab.GuiEnergyTab) GuiInnerScreen(mekanism.client.gui.element.GuiInnerScreen) FloatingLong(mekanism.api.math.FloatingLong) MinerEnergyContainer(mekanism.common.capabilities.energy.MinerEnergyContainer) ArrayList(java.util.ArrayList) List(java.util.List) GuiVisualsTab(mekanism.client.gui.element.tab.GuiVisualsTab) ILangEntry(mekanism.api.text.ILangEntry)

Aggregations

TranslationButton (mekanism.client.gui.element.button.TranslationButton)11 GuiSlot (mekanism.client.gui.element.slot.GuiSlot)6 MatrixStack (com.mojang.blaze3d.matrix.MatrixStack)5 PacketGuiInteract (mekanism.common.network.to_server.PacketGuiInteract)5 ITextComponent (net.minecraft.util.text.ITextComponent)5 Nonnull (javax.annotation.Nonnull)4 GuiElementHolder (mekanism.client.gui.element.GuiElementHolder)4 GuiInnerScreen (mekanism.client.gui.element.GuiInnerScreen)4 MekanismLang (mekanism.common.MekanismLang)4 PlayerInventory (net.minecraft.entity.player.PlayerInventory)4 List (java.util.List)3 GuiVerticalPowerBar (mekanism.client.gui.element.bar.GuiVerticalPowerBar)3 MekanismImageButton (mekanism.client.gui.element.button.MekanismImageButton)3 ArrayList (java.util.ArrayList)2 GuiDigitalSwitch (mekanism.client.gui.element.GuiDigitalSwitch)2 IBarInfoHandler (mekanism.client.gui.element.bar.GuiBar.IBarInfoHandler)2 FilterButton (mekanism.client.gui.element.button.FilterButton)2 GuiProgress (mekanism.client.gui.element.progress.GuiProgress)2 GuiModuleScrollList (mekanism.client.gui.element.scroll.GuiModuleScrollList)2 GuiScrollBar (mekanism.client.gui.element.scroll.GuiScrollBar)2