blob: 380b6d37959d81e9e5fe2923fcc43158277bc884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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<ItemStack>();
for(int i=0; i<this.size(); i++)
{
if(get(i)!=null)list.add(get(i));
}
return list;
}
public boolean getCanTakeStack()
{
return true;
}
}
|