From 05c78126859231a68e199dc34613689bd0978e2f Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Mon, 11 Apr 2016 19:44:54 +0300 Subject: Initial commit --- ihl/processing/metallurgy/CrucibleSlot.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ihl/processing/metallurgy/CrucibleSlot.java (limited to 'ihl/processing/metallurgy/CrucibleSlot.java') diff --git a/ihl/processing/metallurgy/CrucibleSlot.java b/ihl/processing/metallurgy/CrucibleSlot.java new file mode 100644 index 0000000..e0b702d --- /dev/null +++ b/ihl/processing/metallurgy/CrucibleSlot.java @@ -0,0 +1,20 @@ +package ihl.processing.metallurgy; + +import net.minecraft.inventory.Slot; +import net.minecraft.item.ItemStack; + +public class CrucibleSlot extends Slot +{ + CrucibleInventory inventory; + public CrucibleSlot(CrucibleInventory arg0, int arg1, int arg2, int arg3) + { + super(arg0, arg1, arg2, arg3); + inventory=arg0; + } + + @Override + public boolean isItemValid(ItemStack itemstack) + { + return itemstack == null ? false : inventory.isItemValidForSlot(0, itemstack); + } +} -- cgit v1.2.3