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