3
0
KCauldronX/patches/net/minecraft/inventory/IInventory.java.patch
2015-03-22 20:38:04 +03:00

33 lines
853 B
Diff

--- ../src-base/minecraft/net/minecraft/inventory/IInventory.java
+++ ../src-work/minecraft/net/minecraft/inventory/IInventory.java
@@ -3,6 +3,8 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
+import org.bukkit.craftbukkit.entity.CraftHumanEntity; // CraftBukkit
+
public interface IInventory
{
int getSizeInventory();
@@ -30,4 +32,20 @@
void closeInventory();
boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_);
+
+ // 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
}