summaryrefslogtreecommitdiffstats
path: root/nms-patches/IInventory.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/IInventory.patch')
-rw-r--r--nms-patches/IInventory.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/nms-patches/IInventory.patch b/nms-patches/IInventory.patch
new file mode 100644
index 00000000..d65dcde8
--- /dev/null
+++ b/nms-patches/IInventory.patch
@@ -0,0 +1,31 @@
+--- ../work/decompile-bb26c12b/net/minecraft/server/IInventory.java 2014-11-27 08:59:46.757421600 +1100
++++ src/main/java/net/minecraft/server/IInventory.java 2014-11-27 08:42:10.168850880 +1100
+@@ -1,5 +1,7 @@
+ package net.minecraft.server;
+
++import org.bukkit.craftbukkit.entity.CraftHumanEntity; // CraftBukkit
++
+ public interface IInventory extends INamableTileEntity {
+
+ int getSize();
+@@ -31,4 +33,20 @@
+ int g();
+
+ void l();
++
++ // CraftBukkit start
++ 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);
++
++ int MAX_STACK = 64;
++ // CraftBukkit end
+ }