Class SimpleInventoryMock

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

public class SimpleInventoryMock extends InventoryMock
  • Constructor Details

    • SimpleInventoryMock

      public SimpleInventoryMock(@Nullable @Nullable org.bukkit.inventory.InventoryHolder holder, int size, @NotNull @NotNull org.bukkit.event.inventory.InventoryType type)
      Creates a new inventory with size inherited from InventoryType.getDefaultSize().
      Parameters:
      holder - The InventoryHolder
      size - The size for this InventoryMock.
      type - The InventoryType for this InventoryMock
    • SimpleInventoryMock

      public SimpleInventoryMock(@Nullable @Nullable org.bukkit.inventory.InventoryHolder holder, @NotNull @NotNull org.bukkit.event.inventory.InventoryType type)
      Creates a new inventory with size inherited from InventoryType.getDefaultSize().
      Parameters:
      holder - The InventoryHolder
      type - The InventoryType for this InventoryMock
    • SimpleInventoryMock

      public SimpleInventoryMock()
      Creates a very simple inventory with no holder, as name Inventory, a size of 9, and an inventory type of InventoryType.CHEST.