Files
CatServer/patches/net/minecraft/inventory/IInventory.java.patch
2018-07-15 13:26:53 +08:00

34 lines
862 B
Diff

--- ../src-base/minecraft/net/minecraft/inventory/IInventory.java
+++ ../src-work/minecraft/net/minecraft/inventory/IInventory.java
@@ -4,6 +4,7 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.IWorldNameable;
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
public interface IInventory extends IWorldNameable
{
@@ -39,4 +40,22 @@
int getFieldCount();
void clear();
+ // 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);
+
+ org.bukkit.Location getLocation();
+
+ int MAX_STACK = 64;
+ // CraftBukkit end
+
}