summaryrefslogtreecommitdiff
path: root/ihl/processing/invslots/SlotInvSlotIronWorkbench.java
blob: 7f00e06c0798b348b6db44927742765018041b85 (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
31
32
package ihl.processing.invslots;

import ic2.core.slot.SlotInvSlot;
import ihl.flexible_cable.IronWorkbenchInvSlot;
import ihl.flexible_cable.IronWorkbenchTileEntity;
import net.minecraft.entity.player.EntityPlayer;

public class SlotInvSlotIronWorkbench extends SlotInvSlot {

    public IronWorkbenchInvSlot invSlot;
	
    public SlotInvSlotIronWorkbench(IronWorkbenchInvSlot invSlot1, int index1,
			int xDisplayPosition1, int yDisplayPosition1) {
		super(invSlot1, index1, xDisplayPosition1, yDisplayPosition1);
		this.invSlot=invSlot1;
		
    }
	
    @Override
    public boolean canTakeStack(EntityPlayer player)
    {
        return this.invSlot.getCanTakeStack();
    }


    @Override
    public void onSlotChanged()
    {
	super.onSlotChanged();
	((IronWorkbenchTileEntity)this.invSlot.base).resetOutput();
    }
}