2013-12-27 23:59:59 +01:00
|
|
|
package appeng.container.slot;
|
|
|
|
|
2014-02-05 08:25:44 +01:00
|
|
|
import net.minecraft.inventory.Container;
|
2013-12-27 23:59:59 +01:00
|
|
|
import net.minecraft.inventory.IInventory;
|
2014-02-05 08:25:44 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
public class SlotCraftingMatrix extends AppEngSlot
|
|
|
|
{
|
|
|
|
|
2014-02-05 08:25:44 +01:00
|
|
|
Container c;
|
|
|
|
|
|
|
|
public SlotCraftingMatrix(Container c, IInventory par1iInventory, int par2, int par3, int par4) {
|
2013-12-27 23:59:59 +01:00
|
|
|
super( par1iInventory, par2, par3, par4 );
|
2014-02-05 08:25:44 +01:00
|
|
|
this.c = c;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isPlayerSide()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void clearStack()
|
|
|
|
{
|
|
|
|
super.clearStack();
|
|
|
|
c.onCraftMatrixChanged( inventory );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ItemStack decrStackSize(int par1)
|
|
|
|
{
|
|
|
|
ItemStack is = super.decrStackSize( par1 );
|
|
|
|
c.onCraftMatrixChanged( inventory );
|
|
|
|
return is;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void putStack(ItemStack par1ItemStack)
|
|
|
|
{
|
|
|
|
super.putStack( par1ItemStack );
|
|
|
|
c.onCraftMatrixChanged( inventory );
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|