--- a/net/minecraft/world/IInventory.java +++ b/net/minecraft/world/IInventory.java @@ -6,6 +6,11 @@ import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; +// CraftBukkit start +import net.minecraft.world.item.crafting.IRecipe; +import org.bukkit.craftbukkit.entity.CraftHumanEntity; +// CraftBukkit end + public interface IInventory extends Clearable { int LARGE_MAX_STACK_SIZE = 64; @@ -22,9 +27,7 @@ void setItem(int i, ItemStack itemstack); - default int getMaxStackSize() { - return 64; - } + int getMaxStackSize(); // CraftBukkit void setChanged(); @@ -69,4 +72,29 @@ return false; } + + // CraftBukkit start + java.util.List getContents(); + + void onOpen(CraftHumanEntity who); + + void onClose(CraftHumanEntity who); + + java.util.List getViewers(); + + org.bukkit.inventory.InventoryHolder getOwner(); + + void setMaxStackSize(int size); + + org.bukkit.Location getLocation(); + + default IRecipe getCurrentRecipe() { + return null; + } + + default void setCurrentRecipe(IRecipe recipe) { + } + + int MAX_STACK = 64; + // CraftBukkit end }