diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
| commit | 05c78126859231a68e199dc34613689bd0978e2f (patch) | |
| tree | 050bea104a18c72905095d29f31bec2935a27a24 /ihl/processing/metallurgy/CrucibleSlot.java | |
Initial commit
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);
+ }
+}
|
