2016-03-15 05:53:05 +01:00
|
|
|
package techreborn.client.container;
|
|
|
|
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2016-11-19 13:50:08 +01:00
|
|
|
import reborncore.client.gui.slots.BaseSlot;
|
2016-03-15 05:53:05 +01:00
|
|
|
import techreborn.init.ModItems;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public class SlotScrapbox extends BaseSlot {
|
2016-03-15 05:53:05 +01:00
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public SlotScrapbox(IInventory par1iInventory, int par2, int par3, int par4) {
|
2016-03-25 10:47:34 +01:00
|
|
|
super(par1iInventory, par2, par3, par4);
|
|
|
|
}
|
2016-03-15 05:53:05 +01:00
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public boolean isItemValid(ItemStack par1ItemStack) {
|
2017-01-01 08:29:32 +01:00
|
|
|
return par1ItemStack.getItem() == ModItems.SCRAP_BOX;
|
2016-03-25 10:47:34 +01:00
|
|
|
}
|
2016-03-15 05:53:05 +01:00
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public int getSlotStackLimit() {
|
2016-03-25 10:47:34 +01:00
|
|
|
return 64;
|
|
|
|
}
|
2016-03-15 05:53:05 +01:00
|
|
|
}
|