2016-03-15 05:53:05 +01:00
|
|
|
package techreborn.client.container;
|
|
|
|
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
import net.minecraft.inventory.Slot;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import techreborn.init.ModItems;
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
public class SlotScrapbox extends Slot
|
|
|
|
{
|
2016-03-15 05:53:05 +01:00
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
public SlotScrapbox(IInventory par1iInventory, int par2, int par3, int par4)
|
|
|
|
{
|
|
|
|
super(par1iInventory, par2, par3, par4);
|
|
|
|
}
|
2016-03-15 05:53:05 +01:00
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
public boolean isItemValid(ItemStack par1ItemStack)
|
|
|
|
{
|
|
|
|
if (par1ItemStack.getItem() == ModItems.scrapBox)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2016-03-15 05:53:05 +01:00
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
public int getSlotStackLimit()
|
|
|
|
{
|
|
|
|
return 64;
|
|
|
|
}
|
2016-03-15 05:53:05 +01:00
|
|
|
}
|