2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/IInventory.java
|
|
|
|
+++ b/net/minecraft/world/IInventory.java
|
|
|
|
@@ -5,6 +5,11 @@
|
|
|
|
import net.minecraft.world.item.Item;
|
|
|
|
import net.minecraft.world.item.ItemStack;
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2021-03-15 23:00:00 +01:00
|
|
|
+// CraftBukkit start
|
|
|
|
+import net.minecraft.world.item.crafting.IRecipe;
|
|
|
|
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
|
|
|
+// CraftBukkit end
|
2021-03-08 22:47:33 +01:00
|
|
|
+
|
2019-04-23 04:00:00 +02:00
|
|
|
public interface IInventory extends Clearable {
|
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
int LARGE_MAX_STACK_SIZE = 64;
|
|
|
|
@@ -21,9 +26,7 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
|
|
|
|
void setItem(int i, ItemStack itemstack);
|
|
|
|
|
|
|
|
- default int getMaxStackSize() {
|
|
|
|
- return 64;
|
|
|
|
- }
|
|
|
|
+ int getMaxStackSize(); // CraftBukkit
|
|
|
|
|
|
|
|
void update();
|
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -62,4 +65,29 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
|
|
|
|
return false;
|
2018-07-15 02:00:00 +02:00
|
|
|
}
|
2015-02-26 23:41:06 +01:00
|
|
|
+
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start
|
2016-11-17 02:41:03 +01:00
|
|
|
+ java.util.List<ItemStack> getContents();
|
2014-11-25 22:32:16 +01:00
|
|
|
+
|
|
|
|
+ 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);
|
|
|
|
+
|
2016-02-29 22:32:46 +01:00
|
|
|
+ org.bukkit.Location getLocation();
|
|
|
|
+
|
2018-07-15 02:00:00 +02:00
|
|
|
+ default IRecipe getCurrentRecipe() {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ default void setCurrentRecipe(IRecipe recipe) {
|
|
|
|
+ }
|
|
|
|
+
|
2014-11-25 22:32:16 +01:00
|
|
|
+ int MAX_STACK = 64;
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|