mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
25f3b50f6b
By: md_5 <git@md-5.net>
55 lines
1.2 KiB
Diff
55 lines
1.2 KiB
Diff
--- a/net/minecraft/world/IInventory.java
|
|
+++ b/net/minecraft/world/IInventory.java
|
|
@@ -6,6 +6,11 @@
|
|
import net.minecraft.world.item.Item;
|
|
import net.minecraft.world.item.ItemStack;
|
|
|
|
+// CraftBukkit start
|
|
+import net.minecraft.world.item.crafting.IRecipe;
|
|
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
|
+// CraftBukkit end
|
|
+
|
|
public interface IInventory extends Clearable {
|
|
|
|
int LARGE_MAX_STACK_SIZE = 64;
|
|
@@ -22,9 +27,7 @@
|
|
|
|
void setItem(int i, ItemStack itemstack);
|
|
|
|
- default int getMaxStackSize() {
|
|
- return 64;
|
|
- }
|
|
+ int getMaxStackSize(); // CraftBukkit
|
|
|
|
void setChanged();
|
|
|
|
@@ -69,4 +72,29 @@
|
|
|
|
return false;
|
|
}
|
|
+
|
|
+ // 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 IRecipe getCurrentRecipe() {
|
|
+ return null;
|
|
+ }
|
|
+
|
|
+ default void setCurrentRecipe(IRecipe recipe) {
|
|
+ }
|
|
+
|
|
+ int MAX_STACK = 64;
|
|
+ // CraftBukkit end
|
|
}
|