summaryrefslogtreecommitdiff
path: root/ihl/flexible_cable/IronWorkbenchInvSlot.java
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2016-04-11 19:44:54 +0300
committerFoghrye4 <foghrye4@gmail.com>2016-04-11 19:44:54 +0300
commit05c78126859231a68e199dc34613689bd0978e2f (patch)
tree050bea104a18c72905095d29f31bec2935a27a24 /ihl/flexible_cable/IronWorkbenchInvSlot.java
Initial commit
Diffstat (limited to 'ihl/flexible_cable/IronWorkbenchInvSlot.java')
-rw-r--r--ihl/flexible_cable/IronWorkbenchInvSlot.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/ihl/flexible_cable/IronWorkbenchInvSlot.java b/ihl/flexible_cable/IronWorkbenchInvSlot.java
new file mode 100644
index 0000000..830f9b4
--- /dev/null
+++ b/ihl/flexible_cable/IronWorkbenchInvSlot.java
@@ -0,0 +1,30 @@
+package ihl.flexible_cable;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import net.minecraft.item.ItemStack;
+import ic2.core.block.invslot.InvSlot;
+
+public class IronWorkbenchInvSlot extends InvSlot {
+
+ public IronWorkbenchInvSlot(IronWorkbenchTileEntity base1, String name1,
+ int oldStartIndex1, Access access1, int count) {
+ super(base1, name1, oldStartIndex1, access1, count);
+ }
+
+ public List<ItemStack> getItemStackList()
+ {
+ List<ItemStack> list = new ArrayList();
+ for(int i=0; i<this.size(); i++)
+ {
+ if(get(i)!=null)list.add(get(i));
+ }
+ return list;
+ }
+
+ public boolean getCanTakeStack()
+ {
+ return true;
+ }
+}