diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-14 11:58:43 +0300 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-14 11:58:43 +0300 |
| commit | 1a692ab45df3d88a6cc247cc9f4c0a41c7715264 (patch) | |
| tree | 1854960d78be20ef09c9f098f5e2eb92837019dd /common/darkknight/jewelrycraft/container/SlotRingChest.java | |
| parent | f965cf88704f1e5e674d98308cbe0f4451d7edeb (diff) | |
Updating to 1.7
Diffstat (limited to 'common/darkknight/jewelrycraft/container/SlotRingChest.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/container/SlotRingChest.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/common/darkknight/jewelrycraft/container/SlotRingChest.java b/common/darkknight/jewelrycraft/container/SlotRingChest.java deleted file mode 100644 index 576dee7..0000000 --- a/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; - } -} |
