Class AnvilInventoryMock

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

public class AnvilInventoryMock extends InventoryMock implements org.bukkit.inventory.AnvilInventory
Mock implementation of an AnvilInventory.
See Also:
  • Constructor Details

    • AnvilInventoryMock

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

    • getRenameText

      @Nullable public @Nullable String getRenameText()
      Specified by:
      getRenameText in interface org.bukkit.inventory.AnvilInventory
    • getRepairCostAmount

      public int getRepairCostAmount()
      Specified by:
      getRepairCostAmount in interface org.bukkit.inventory.AnvilInventory
    • setRepairCostAmount

      public void setRepairCostAmount(int amount)
      Specified by:
      setRepairCostAmount in interface org.bukkit.inventory.AnvilInventory
    • getRepairCost

      public int getRepairCost()
      Specified by:
      getRepairCost in interface org.bukkit.inventory.AnvilInventory
    • setRepairCost

      public void setRepairCost(int levels)
      Specified by:
      setRepairCost in interface org.bukkit.inventory.AnvilInventory
    • getMaximumRepairCost

      public int getMaximumRepairCost()
      Specified by:
      getMaximumRepairCost in interface org.bukkit.inventory.AnvilInventory
    • setMaximumRepairCost

      public void setMaximumRepairCost(int levels)
      Specified by:
      setMaximumRepairCost in interface org.bukkit.inventory.AnvilInventory
    • setRenameText

      public void setRenameText(@Nullable @Nullable String text)
      Sets the result of getRenameText().
      Parameters:
      text - The text to set.