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