TechReborn/src/main/java/techreborn/client/container/SlotScrapbox.java

21 lines
536 B
Java
Raw Normal View History

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;
import techreborn.init.ModItems;
2016-10-08 21:46:16 +02:00
public class SlotScrapbox extends BaseSlot {
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-10-08 21:46:16 +02:00
public boolean isItemValid(ItemStack par1ItemStack) {
return par1ItemStack.getItem() == ModItems.SCRAP_BOX;
2016-03-25 10:47:34 +01:00
}
2016-10-08 21:46:16 +02:00
public int getSlotStackLimit() {
2016-03-25 10:47:34 +01:00
return 64;
}
}