Update to Minecraft 1.20.5

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-04-24 01:15:00 +10:00
parent 4deda9501f
commit 65bc2541a3
524 changed files with 7788 additions and 6181 deletions

View File

@@ -11,21 +11,21 @@
+
public interface IInventory extends Clearable {
int LARGE_MAX_STACK_SIZE = 64;
@@ -26,9 +31,7 @@
float DEFAULT_DISTANCE_BUFFER = 4.0F;
@@ -25,9 +30,7 @@
void setItem(int i, ItemStack itemstack);
- default int getMaxStackSize() {
- return 64;
- return 99;
- }
+ int getMaxStackSize(); // CraftBukkit
void setChanged();
default int getMaxStackSize(ItemStack itemstack) {
return Math.min(this.getMaxStackSize(), itemstack.getMaxStackSize());
@@ -91,4 +94,29 @@
@@ -88,4 +91,29 @@
return world == null ? false : (world.getBlockEntity(blockposition) != tileentity ? false : entityhuman.distanceToSqr((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D) <= (double) (i * i));
return world == null ? false : (world.getBlockEntity(blockposition) != tileentity ? false : entityhuman.canInteractWithBlock(blockposition, (double) f));
}
+
+ // CraftBukkit start
@@ -50,6 +50,6 @@
+ default void setCurrentRecipe(RecipeHolder<?> recipe) {
+ }
+
+ int MAX_STACK = 64;
+ int MAX_STACK = 99;
+ // CraftBukkit end
}