Search in sources :

Example 6 with SlotItemHandler

use of net.minecraftforge.items.SlotItemHandler in project pnc-repressurized by TeamPneumatic.

the class ContainerSearcher method init.

public void init(GuiSearcher gui) {
    this.gui = gui;
    for (int i = 0; i < 6; ++i) {
        for (int j = 0; j < 8; ++j) {
            addSlotToContainer(new SlotItemHandler(gui.getInventory(), i * 8 + j, 8 + j * 18, 52 + i * 18));
        }
    }
    addSlotToContainer(new SlotItemHandler(gui.getInventory(), 48, 124, 25));
    scrollTo(0.0F);
}
Also used : SlotItemHandler(net.minecraftforge.items.SlotItemHandler)

Example 7 with SlotItemHandler

use of net.minecraftforge.items.SlotItemHandler in project KalStuff by TEAMModding.

the class ContainerChickenNest method addOwnSlots.

private void addOwnSlots() {
    IItemHandler itemHandler = this.tileEntityChickenNest.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);
    // add our own slots to the GUI
    addSlotToContainer(new SlotItemHandler(itemHandler, 0, TILE_INVENTORY_XPOS, TILE_INVENTORY_YPOS));
}
Also used : IItemHandler(net.minecraftforge.items.IItemHandler) SlotItemHandler(net.minecraftforge.items.SlotItemHandler)

Aggregations

SlotItemHandler (net.minecraftforge.items.SlotItemHandler)7 FluidTankList (gregtech.api.capability.impl.FluidTankList)1 Widget (gregtech.api.gui.Widget)1 SlotWidget (gregtech.api.gui.widgets.SlotWidget)1 TankWidget (gregtech.api.gui.widgets.TankWidget)1 List (java.util.List)1 IGuiFluidStackGroup (mezz.jei.api.gui.IGuiFluidStackGroup)1 IGuiItemStackGroup (mezz.jei.api.gui.IGuiItemStackGroup)1 FluidStack (net.minecraftforge.fluids.FluidStack)1 IItemHandler (net.minecraftforge.items.IItemHandler)1