summaryrefslogtreecommitdiffstats
path: root/nms-patches/IInventory.patch
blob: 6bde6883cde08391eb8a8ceb8b1d4661f9e8e787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- /home/matt/mc-dev-private//net/minecraft/server/IInventory.java	2015-02-26 22:40:22.759608138 +0000
+++ src/main/java/net/minecraft/server/IInventory.java	2015-02-26 22:40:22.759608138 +0000
@@ -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
 }