Class WorkbenchInventoryMock

java.lang.Object
be.seeseemelk.mockbukkit.inventory.InventoryMock
be.seeseemelk.mockbukkit.inventory.WorkbenchInventoryMock
All Implemented Interfaces:
Iterable<org.bukkit.inventory.ItemStack>, org.bukkit.inventory.CraftingInventory, org.bukkit.inventory.Inventory

public class WorkbenchInventoryMock extends InventoryMock implements org.bukkit.inventory.CraftingInventory
Mock implementation of a CraftingInventory.
See Also:
  • Constructor Details

    • WorkbenchInventoryMock

      public WorkbenchInventoryMock(@Nullable @Nullable org.bukkit.inventory.InventoryHolder holder)
      Constructs a new WorkbenchInventoryMock for the given holder.
      Parameters:
      holder - The holder of the inventory.
  • Method Details

    • getResult

      @Nullable public @Nullable org.bukkit.inventory.ItemStack getResult()
      Specified by:
      getResult in interface org.bukkit.inventory.CraftingInventory
    • getMatrix

      @Nullable public @Nullable org.bukkit.inventory.ItemStack @NotNull [] getMatrix()
      Specified by:
      getMatrix in interface org.bukkit.inventory.CraftingInventory
    • setResult

      public void setResult(@Nullable @Nullable org.bukkit.inventory.ItemStack newResult)
      Specified by:
      setResult in interface org.bukkit.inventory.CraftingInventory
    • setMatrix

      public void setMatrix(@Nullable @Nullable org.bukkit.inventory.ItemStack @NotNull [] contents)
      Specified by:
      setMatrix in interface org.bukkit.inventory.CraftingInventory
    • getRecipe

      @Nullable public @Nullable org.bukkit.inventory.Recipe getRecipe()
      Specified by:
      getRecipe in interface org.bukkit.inventory.CraftingInventory