--- a/net/minecraft/world/Container.java +++ b/net/minecraft/world/Container.java @@ -24,9 +_,7 @@ void setItem(int slot, ItemStack stack); - default int getMaxStackSize() { - return 99; - } + int getMaxStackSize(); // CraftBukkit default int getMaxStackSize(ItemStack stack) { return Math.min(this.getMaxStackSize(), stack.getMaxStackSize()); @@ -87,4 +_,22 @@ BlockPos blockPos = blockEntity.getBlockPos(); return level != null && level.getBlockEntity(blockPos) == blockEntity && player.canInteractWithBlock(blockPos, distance); } + + // CraftBukkit start + java.util.List getContents(); + + void onOpen(org.bukkit.craftbukkit.entity.CraftHumanEntity player); + + void onClose(org.bukkit.craftbukkit.entity.CraftHumanEntity player); + + java.util.List getViewers(); + + org.bukkit.inventory.@org.jetbrains.annotations.Nullable InventoryHolder getOwner(); + + void setMaxStackSize(int size); + + org.bukkit.Location getLocation(); + + int MAX_STACK = Item.ABSOLUTE_MAX_STACK_SIZE; + // CraftBukkit end }