mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
net/minecraft/world + Tadpole?
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
--- 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(); // Paper
|
||||
|
||||
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);
|
||||
}
|
||||
+
|
||||
+ // Paper start
|
||||
+ java.util.List<ItemStack> getContents();
|
||||
+
|
||||
+ void onOpen(org.bukkit.craftbukkit.entity.CraftHumanEntity who);
|
||||
+
|
||||
+ void onClose(org.bukkit.craftbukkit.entity.CraftHumanEntity who);
|
||||
+
|
||||
+ java.util.List<org.bukkit.entity.HumanEntity> getViewers();
|
||||
+
|
||||
+ org.bukkit.inventory.@org.jetbrains.annotations.Nullable InventoryHolder getOwner(); // Paper - annotation
|
||||
+
|
||||
+ void setMaxStackSize(int size);
|
||||
+
|
||||
+ org.bukkit.Location getLocation();
|
||||
+
|
||||
+ int MAX_STACK = 99;
|
||||
+ // Paper end
|
||||
}
|
Reference in New Issue
Block a user