diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-02-09 17:40:20 +0200 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-02-09 17:40:20 +0200 |
commit | a799905e5e8a88bff003ebc5e9ed442af11c5598 (patch) | |
tree | efcd594fb7fe6b000956297140fce735c2634a71 | |
parent | 75a68c542956e168b66f4024f4c73eb0360fc455 (diff) | |
download | LibGui-a799905e5e8a88bff003ebc5e9ed442af11c5598.tar.gz LibGui-a799905e5e8a88bff003ebc5e9ed442af11c5598.tar.bz2 LibGui-a799905e5e8a88bff003ebc5e9ed442af11c5598.zip |
Make EmptyInventory.canPlayerUseInv return true, give nicer names to EmptyInventory parameters
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java b/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java index a80b5da..da54dda 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/EmptyInventory.java @@ -23,22 +23,22 @@ public class EmptyInventory implements Inventory { } @Override - public ItemStack getInvStack(int var1) { + public ItemStack getInvStack(int slot) { return ItemStack.EMPTY; } @Override - public ItemStack takeInvStack(int var1, int var2) { + public ItemStack takeInvStack(int slot, int count) { return ItemStack.EMPTY; } @Override - public ItemStack removeInvStack(int var1) { + public ItemStack removeInvStack(int slot) { return ItemStack.EMPTY; } @Override - public void setInvStack(int var1, ItemStack var2) { + public void setInvStack(int slot, ItemStack stack) { } @Override @@ -46,8 +46,8 @@ public class EmptyInventory implements Inventory { } @Override - public boolean canPlayerUseInv(PlayerEntity var1) { - return false; + public boolean canPlayerUseInv(PlayerEntity player) { + return true; } } |