diff options
Diffstat (limited to 'ihl/processing/metallurgy/CrucibleSlot.java')
| -rw-r--r-- | ihl/processing/metallurgy/CrucibleSlot.java | 20 |
1 files changed, 20 insertions, 0 deletions
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);
+ }
+}
|
