mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 17:27:41 +01:00
8a3c8cfcd4
By: md_5 <git@md-5.net>
56 lines
1.5 KiB
Diff
56 lines
1.5 KiB
Diff
--- a/net/minecraft/world/IInventory.java
|
|
+++ b/net/minecraft/world/IInventory.java
|
|
@@ -9,6 +9,11 @@
|
|
import net.minecraft.world.level.World;
|
|
import net.minecraft.world.level.block.entity.TileEntity;
|
|
|
|
+// CraftBukkit start
|
|
+import net.minecraft.world.item.crafting.RecipeHolder;
|
|
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
|
+// CraftBukkit end
|
|
+
|
|
public interface IInventory extends Clearable {
|
|
|
|
int LARGE_MAX_STACK_SIZE = 64;
|
|
@@ -26,9 +31,7 @@
|
|
|
|
void setItem(int i, ItemStack itemstack);
|
|
|
|
- default int getMaxStackSize() {
|
|
- return 64;
|
|
- }
|
|
+ int getMaxStackSize(); // CraftBukkit
|
|
|
|
void setChanged();
|
|
|
|
@@ -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));
|
|
}
|
|
+
|
|
+ // CraftBukkit start
|
|
+ java.util.List<ItemStack> getContents();
|
|
+
|
|
+ void onOpen(CraftHumanEntity who);
|
|
+
|
|
+ void onClose(CraftHumanEntity who);
|
|
+
|
|
+ java.util.List<org.bukkit.entity.HumanEntity> getViewers();
|
|
+
|
|
+ org.bukkit.inventory.InventoryHolder getOwner();
|
|
+
|
|
+ void setMaxStackSize(int size);
|
|
+
|
|
+ org.bukkit.Location getLocation();
|
|
+
|
|
+ default RecipeHolder<?> getCurrentRecipe() {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ default void setCurrentRecipe(RecipeHolder<?> recipe) {
|
|
+ }
|
|
+
|
|
+ int MAX_STACK = 64;
|
|
+ // CraftBukkit end
|
|
}
|