2015-05-25 20:37:24 +10:00
|
|
|
--- a/net/minecraft/server/IInventory.java
|
|
|
|
+++ b/net/minecraft/server/IInventory.java
|
2019-04-23 12:00:00 +10:00
|
|
|
@@ -1,6 +1,7 @@
|
2014-11-26 08:32:16 +11:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
2019-04-23 12:00:00 +10:00
|
|
|
import java.util.Set;
|
2014-11-26 08:32:16 +11:00
|
|
|
+import org.bukkit.craftbukkit.entity.CraftHumanEntity; // CraftBukkit
|
|
|
|
|
2019-04-23 12:00:00 +10:00
|
|
|
public interface IInventory extends Clearable {
|
|
|
|
|
|
|
|
@@ -16,9 +17,7 @@
|
|
|
|
|
|
|
|
void setItem(int i, ItemStack itemstack);
|
|
|
|
|
|
|
|
- default int getMaxStackSize() {
|
|
|
|
- return 64;
|
|
|
|
- }
|
|
|
|
+ int getMaxStackSize(); // CraftBukkit
|
|
|
|
|
|
|
|
void update();
|
|
|
|
|
|
|
|
@@ -57,4 +56,29 @@
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|