diff options
author | Celtic Minstrel <celtic.minstrel.ca@some.place> | 2012-03-14 10:00:54 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-15 22:44:10 -0400 |
commit | 5c8fd4995f2bd4817e4a822ab63a485e4abc1ab2 (patch) | |
tree | f0da8ed8ed6f0474d0863719a858692105e0fb91 /src/main/java/net/minecraft/server/TileEntityBrewingStand.java | |
parent | 66e067f37335ddb6261487744c42e4efc709d2b9 (diff) | |
download | craftbukkit-5c8fd4995f2bd4817e4a822ab63a485e4abc1ab2.tar craftbukkit-5c8fd4995f2bd4817e4a822ab63a485e4abc1ab2.tar.gz craftbukkit-5c8fd4995f2bd4817e4a822ab63a485e4abc1ab2.tar.lz craftbukkit-5c8fd4995f2bd4817e4a822ab63a485e4abc1ab2.tar.xz craftbukkit-5c8fd4995f2bd4817e4a822ab63a485e4abc1ab2.zip |
[Bleeding] Implemented Inventory.{get,set}MaxStackSize(). Addresses BUKKIT-1076
- Custom inventories also respect this setting now.
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityBrewingStand.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityBrewingStand.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityBrewingStand.java b/src/main/java/net/minecraft/server/TileEntityBrewingStand.java index 0c50bb6b..abfa178b 100644 --- a/src/main/java/net/minecraft/server/TileEntityBrewingStand.java +++ b/src/main/java/net/minecraft/server/TileEntityBrewingStand.java @@ -23,6 +23,7 @@ public class TileEntityBrewingStand extends TileEntity implements IInventory { // CraftBukkit start public List<HumanEntity> transaction = new ArrayList<HumanEntity>(); + private int maxStack = 1; public void onOpen(CraftHumanEntity who) { transaction.add(who); @@ -39,6 +40,10 @@ public class TileEntityBrewingStand extends TileEntity implements IInventory { public ItemStack[] getContents() { return this.items; } + + public void setMaxStackSize(int size) { + maxStack = size; + } // CraftBukkit end public String getName() { @@ -228,7 +233,7 @@ public class TileEntityBrewingStand extends TileEntity implements IInventory { } public int getMaxStackSize() { - return 1; + return maxStack; // CraftBukkit } public boolean a(EntityHuman entityhuman) { |