diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-04-12 16:29:24 +0300 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-04-12 16:29:24 +0300 |
| commit | 4f29b0ed24e393be7074abd851e207aadab38196 (patch) | |
| tree | be8e5211a2956589c08b5e88b5e083e6aaeb96ce /src/main/java/darkknight/jewelrycraft/container/SlotRingChest.java | |
| parent | 6312636fd9a4d0f56dc7c9ff474a99d879bcb4e9 (diff) | |
I rearranged files and added a few cool stuff.
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/container/SlotRingChest.java')
| -rw-r--r-- | src/main/java/darkknight/jewelrycraft/container/SlotRingChest.java | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/container/SlotRingChest.java b/src/main/java/darkknight/jewelrycraft/container/SlotRingChest.java deleted file mode 100644 index b1f553c..0000000 --- a/src/main/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; - } -} |
