--- a/net/minecraft/world/IInventory.java +++ b/net/minecraft/world/IInventory.java @@ -5,6 +5,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; @@ -21,9 +26,7 @@ void setItem(int i, ItemStack itemstack); - default int getMaxStackSize() { - return 64; - } + int getMaxStackSize(); // CraftBukkit void update(); @@ -62,4 +65,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 }