2013-12-27 23:59:59 +01:00
|
|
|
package appeng.container.slot;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class SlotFake extends AppEngSlot
|
|
|
|
{
|
|
|
|
|
|
|
|
int invSlot;
|
|
|
|
|
|
|
|
public SlotFake(IInventory inv, int idx, int x, int y) {
|
|
|
|
super( inv, idx, x, y );
|
|
|
|
invSlot = idx;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean canTakeStack(EntityPlayer par1EntityPlayer)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ItemStack decrStackSize(int par1)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-01-01 09:57:16 +01:00
|
|
|
public void putStack(ItemStack is)
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
2014-01-01 09:57:16 +01:00
|
|
|
if ( is != null )
|
|
|
|
is = is.copy();
|
|
|
|
|
|
|
|
super.putStack( is );
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isItemValid(ItemStack par1ItemStack)
|
|
|
|
{
|
2014-01-01 09:57:16 +01:00
|
|
|
return false;
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
2013-12-30 06:52:00 +01:00
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|