summaryrefslogtreecommitdiff
path: root/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/SlotRingChest.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-15 23:05:32 +0300
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-15 23:05:32 +0300
commit256653501365eb4f95d3dddbcdfdc23a2a9594d5 (patch)
tree682c8ff1f943936d173299acfa42e77462eb297c /eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/SlotRingChest.java
parent4b8b13b34d7a8fd0ee7c7b13f11be9c2bf3b5d18 (diff)
Moved source files
Diffstat (limited to 'eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/SlotRingChest.java')
-rw-r--r--eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/SlotRingChest.java39
1 files changed, 0 insertions, 39 deletions
diff --git a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/SlotRingChest.java b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/SlotRingChest.java
deleted file mode 100644
index 576dee7..0000000
--- a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/SlotRingChest.java
+++ /dev/null
@@ -1,39 +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;
-
- public SlotRingChest(IInventory tile, int slotID, int x, int y, boolean locked)
- {
- super(tile, slotID, x, y);
- this.locked = locked;
- }
-
- @Override
- public boolean isItemValid(ItemStack stack)
- {
- return !locked;
- }
-
- @Override
- public ItemStack decrStackSize(int amount)
- {
- if (!locked)
- {
- return super.decrStackSize(amount);
- }
- return null;
- }
-
- @Override
- public boolean canTakeStack(EntityPlayer player)
- {
- return !locked;
- }
-}