aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/slots/SlotItemBackpackInv.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/core/slots/SlotItemBackpackInv.java')
-rw-r--r--src/Java/gtPlusPlus/core/slots/SlotItemBackpackInv.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/Java/gtPlusPlus/core/slots/SlotItemBackpackInv.java b/src/Java/gtPlusPlus/core/slots/SlotItemBackpackInv.java
deleted file mode 100644
index 3aa551f966..0000000000
--- a/src/Java/gtPlusPlus/core/slots/SlotItemBackpackInv.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package gtPlusPlus.core.slots;
-
-import net.minecraft.inventory.IInventory;
-import net.minecraft.inventory.Slot;
-import net.minecraft.item.ItemStack;
-
-import gtPlusPlus.core.item.base.BaseItemBackpack;
-
-public class SlotItemBackpackInv extends Slot {
- public SlotItemBackpackInv(final IInventory inv, final int index, final int xPos, final int yPos) {
- super(inv, index, xPos, yPos);
- }
-
- // This is the only method we need to override so that
- // we can't place our inventory-storing Item within
- // its own inventory (thus making it permanently inaccessible)
- // as well as preventing abuse of storing backpacks within backpacks
- /**
- * Check if the stack is a valid item for this slot.
- */
- @Override
- public boolean isItemValid(final ItemStack itemstack) {
- // Everything returns true except an instance of our Item
- return !(itemstack.getItem() instanceof BaseItemBackpack);
- }
-} \ No newline at end of file