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

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

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();
    }
}