diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
| commit | 05c78126859231a68e199dc34613689bd0978e2f (patch) | |
| tree | 050bea104a18c72905095d29f31bec2935a27a24 /ihl/guidebook/IHLGuidebookContainer.java | |
Initial commit
Diffstat (limited to 'ihl/guidebook/IHLGuidebookContainer.java')
| -rw-r--r-- | ihl/guidebook/IHLGuidebookContainer.java | 30 |
1 files changed, 30 insertions, 0 deletions
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<IHLGuidebookInventory>
+{
+ 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);
+ }
+}
|
