@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user