2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/IInventory.java
|
|
|
|
+++ b/net/minecraft/server/IInventory.java
|
2016-11-17 02:41:03 +01:00
|
|
|
@@ -1,5 +1,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
|
|
|
+import org.bukkit.craftbukkit.entity.CraftHumanEntity; // CraftBukkit
|
2016-11-17 02:41:03 +01:00
|
|
|
+
|
2014-11-25 22:32:16 +01:00
|
|
|
public interface IInventory extends INamableTileEntity {
|
|
|
|
|
2016-11-17 02:41:03 +01:00
|
|
|
int getSize();
|
|
|
|
@@ -33,4 +35,22 @@
|
|
|
|
int h();
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2016-11-17 02:41:03 +01:00
|
|
|
void clear();
|
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();
|
|
|
|
+
|
2014-11-25 22:32:16 +01:00
|
|
|
+ int MAX_STACK = 64;
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|