From 05c78126859231a68e199dc34613689bd0978e2f Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Mon, 11 Apr 2016 19:44:54 +0300 Subject: Initial commit --- ihl/guidebook/IHLGuidebookContainer.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ihl/guidebook/IHLGuidebookContainer.java (limited to 'ihl/guidebook/IHLGuidebookContainer.java') diff --git a/ihl/guidebook/IHLGuidebookContainer.java b/ihl/guidebook/IHLGuidebookContainer.java new file mode 100644 index 0000000..4510dcd --- /dev/null +++ b/ihl/guidebook/IHLGuidebookContainer.java @@ -0,0 +1,30 @@ +package ihl.guidebook; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.Slot; +import ic2.core.ContainerBase; + +public class IHLGuidebookContainer extends ContainerBase +{ + public IHLGuidebookInventory box; + public int xSize=256; + public int ySize=211; + + public IHLGuidebookContainer(EntityPlayer entityPlayer, IHLGuidebookInventory box) + { + super(box); + this.box = box; + int col; + for (col = 0; col < 4; ++col) + { + this.addSlotToContainer(new Slot(box, col, 18 + col * 18, 20)); + } + } + + @Override + public void onContainerClosed(EntityPlayer entityPlayer) + { + this.box.onGuiClosed(entityPlayer); + super.onContainerClosed(entityPlayer); + } +} -- cgit v1.2.3