Search in sources :

Example 1 with GhostBackgroundItemSlot

use of com.enderio.core.client.gui.widget.GhostBackgroundItemSlot in project EnderIO by SleepyTrousers.

the class ExternalConnectionContainer method createGhostSlots.

public void createGhostSlots(@Nonnull List<GhostSlot> ghostSlots) {
    if (itemConduit != null) {
        ghostSlots.add(new GhostBackgroundItemSlot(ModObject.itemBasicItemFilter.getItemNN(), slotOutputFilter));
        ghostSlots.add(new GhostBackgroundItemSlot(ModObject.itemBasicItemFilter.getItemNN(), slotInputFilter));
        NNList<ItemStack> ghostSlotIcons = new NNList<>(new ItemStack(ConduitObject.item_extract_speed_upgrade.getItemNN()), new ItemStack(ConduitObject.item_extract_speed_downgrade.getItemNN()));
        ghostSlots.add(new GhostBackgroundItemSlot(ghostSlotIcons, slotFunctionUpgrade));
    }
}
Also used : GhostBackgroundItemSlot(com.enderio.core.client.gui.widget.GhostBackgroundItemSlot) NNList(com.enderio.core.common.util.NNList) ItemStack(net.minecraft.item.ItemStack)

Example 2 with GhostBackgroundItemSlot

use of com.enderio.core.client.gui.widget.GhostBackgroundItemSlot in project EnderIO by SleepyTrousers.

the class ContainerSoulBinder method createGhostSlots.

public void createGhostSlots(List<GhostSlot> slots) {
    slots.add(new GhostBackgroundItemSlot(ModObject.itemSoulVial.getItemNN(), getSlotFromInventory(0)));
    slots.add(new GhostBackgroundItemSlot(ModObject.itemBrokenSpawner.getItemNN(), getSlotFromInventory(1)));
}
Also used : GhostBackgroundItemSlot(com.enderio.core.client.gui.widget.GhostBackgroundItemSlot)

Example 3 with GhostBackgroundItemSlot

use of com.enderio.core.client.gui.widget.GhostBackgroundItemSlot in project EnderIO by SleepyTrousers.

the class ContainerPoweredSpawner method createGhostSlots.

public void createGhostSlots(List<GhostSlot> slots) {
    final GhostBackgroundItemSlot ghostBackgroundItemSlot = new GhostBackgroundItemSlot(ModObject.itemSoulVial.getItemNN(), getSlotFromInventory(0));
    slots.add(ghostBackgroundItemSlot);
}
Also used : GhostBackgroundItemSlot(com.enderio.core.client.gui.widget.GhostBackgroundItemSlot)

Example 4 with GhostBackgroundItemSlot

use of com.enderio.core.client.gui.widget.GhostBackgroundItemSlot in project EnderIO by SleepyTrousers.

the class ContainerStirlingGenerator method addGhostslots.

public void addGhostslots(NNList<GhostSlot> ghostSlots) {
    NNList<ItemStack> fuels = new NNList<>();
    ItemHelper.getValidItems().apply(new Callback<ItemStack>() {

        @Override
        public void apply(@Nonnull ItemStack e) {
            if (getTe().isMachineItemValidForSlot(0, e)) {
                fuels.add(e);
                if (e.getItem() == Items.LAVA_BUCKET || e.getItem() == Items.COAL) {
                    // put an emphasis on the common fuels, especially the lava bucket---many players don't know about that one
                    for (int i = 0; i < 30; i++) {
                        fuels.add(e);
                    }
                }
            }
        }
    });
    ghostSlots.add(new GhostBackgroundItemSlot(fuels, getSlotFromInventory(0)));
}
Also used : GhostBackgroundItemSlot(com.enderio.core.client.gui.widget.GhostBackgroundItemSlot) NNList(com.enderio.core.common.util.NNList) ItemStack(net.minecraft.item.ItemStack)

Example 5 with GhostBackgroundItemSlot

use of com.enderio.core.client.gui.widget.GhostBackgroundItemSlot in project EnderIO by SleepyTrousers.

the class ContainerTank method createGhostSlots.

public void createGhostSlots(List<GhostSlot> slots) {
    slots.add(new GhostBackgroundItemSlot(slotItemsFull.getItemStacks(), getSlotFromInventory(inFull)));
    if (getTe().tank.isEmpty() || !getTe().tank.hasFluid(Fluids.XP_JUICE.getFluid())) {
        slots.add(new GhostBackgroundItemSlot(slotItemsEmpty.getItemStacks(), getSlotFromInventory(inEmpty)));
    } else {
        slots.add(new GhostBackgroundItemSlot(mendables.getItemStacks(), getSlotFromInventory(inEmpty)));
    }
    slots.add(new GhostBackgroundItemSlot(slotItemsEmpty.getItemStacks(), getSlotFromInventory(outEmpty)));
    slots.add(new GhostBackgroundItemSlot(slotItemsFull.getItemStacks(), getSlotFromInventory(outFull)));
}
Also used : GhostBackgroundItemSlot(com.enderio.core.client.gui.widget.GhostBackgroundItemSlot)

Aggregations

GhostBackgroundItemSlot (com.enderio.core.client.gui.widget.GhostBackgroundItemSlot)7 ItemStack (net.minecraft.item.ItemStack)4 NNList (com.enderio.core.common.util.NNList)3 Triple (org.apache.commons.lang3.tuple.Triple)1