From 420faddca46e70e3a70def168fb4e452ef193b0d Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Sat, 21 Feb 2015 21:31:16 +0000 Subject: Added just a butt ton of stuff, also thanks to pau101 for helping me with the Hand Pedestal animation :) --- .../jewelrycraft/container/SlotRingChest.java | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'java/darkknight/jewelrycraft/container/SlotRingChest.java') diff --git a/java/darkknight/jewelrycraft/container/SlotRingChest.java b/java/darkknight/jewelrycraft/container/SlotRingChest.java index fe4cdd0..b1f553c 100644 --- a/java/darkknight/jewelrycraft/container/SlotRingChest.java +++ b/java/darkknight/jewelrycraft/container/SlotRingChest.java @@ -9,25 +9,44 @@ 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); } + if (!locked) return super.decrStackSize(amount); return null; } + /** + * @param player + * @return + */ @Override public boolean canTakeStack(EntityPlayer player) { -- cgit v1.2.3