PaperMC/paper-server/patches/sources/net/minecraft/world/Container.java.patch
2024-12-19 11:30:22 +01:00

36 lines
1.1 KiB
Diff

--- 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<ItemStack> getContents();
+
+ void onOpen(org.bukkit.craftbukkit.entity.CraftHumanEntity player);
+
+ void onClose(org.bukkit.craftbukkit.entity.CraftHumanEntity player);
+
+ java.util.List<org.bukkit.entity.HumanEntity> 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
}