diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
| commit | 420faddca46e70e3a70def168fb4e452ef193b0d (patch) | |
| tree | 247e334012e4bf9e4fa6d42718bf601ce6bd42d9 /java/darkknight/jewelrycraft/container/SlotRingChest.java | |
| parent | 3f4c717de5ebc9b942d65ae45ac87c43bdf8a31b (diff) | |
Added just a butt ton of stuff, also thanks to pau101 for helping me with the Hand Pedestal animation :)
Diffstat (limited to 'java/darkknight/jewelrycraft/container/SlotRingChest.java')
| -rw-r--r-- | java/darkknight/jewelrycraft/container/SlotRingChest.java | 21 |
1 files changed, 20 insertions, 1 deletions
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) { |
