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));
}
}
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)));
}
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);
}
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)));
}
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)));
}
Aggregations