summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/container/SlotRingChest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/darkknight/jewelrycraft/container/SlotRingChest.java')
-rw-r--r--java/darkknight/jewelrycraft/container/SlotRingChest.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/java/darkknight/jewelrycraft/container/SlotRingChest.java b/java/darkknight/jewelrycraft/container/SlotRingChest.java
deleted file mode 100644
index b1f553c..0000000
--- a/java/darkknight/jewelrycraft/container/SlotRingChest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package darkknight.jewelrycraft.container;
-
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.inventory.IInventory;
-import net.minecraft.inventory.Slot;
-import net.minecraft.item.ItemStack;
-
-public class SlotRingChest extends Slot
-{
- public boolean locked = false;
-
- /**
- * @param tile
- * @param slotID
- * @param x
- * @param y
- * @param locked
- */
- public SlotRingChest(IInventory tile, int slotID, int x, int y, boolean locked)
- {
- super(tile, slotID, x, y);
- this.locked = locked;
- }
-
- /**
- * @param stack
- * @return
- */
- @Override
- public boolean isItemValid(ItemStack stack)
- {
- return !locked;
- }
-
- /**
- * @param amount
- * @return
- */
- @Override
- public ItemStack decrStackSize(int amount)
- {
- if (!locked) return super.decrStackSize(amount);
- return null;
- }
-
- /**
- * @param player
- * @return
- */
- @Override
- public boolean canTakeStack(EntityPlayer player)
- {
- return !locked;
- }
-}