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
A basic inventory.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a very simple inventory with no holder, as nameInventory, a size of 9, and an inventory type ofInventoryType.CHEST.SimpleInventoryMock(@Nullable org.bukkit.inventory.InventoryHolder holder, int size, @NotNull org.bukkit.event.inventory.InventoryType type) Creates a new inventory with size inherited from InventoryType.getDefaultSize().SimpleInventoryMock(@Nullable org.bukkit.inventory.InventoryHolder holder, @NotNull org.bukkit.event.inventory.InventoryType type) Creates a new inventory with size inherited from InventoryType.getDefaultSize(). -
Method Summary
Methods inherited from class be.seeseemelk.mockbukkit.inventory.InventoryMock
addItem, addItem, addViewer, addViewers, addViewers, all, all, assertContainsAny, assertContainsAtLeast, assertTrueForAll, assertTrueForNonNulls, assertTrueForSome, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getHolder, getItem, getLocation, getMaxStackSize, getNumberOfItems, getSize, getSnapshot, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, removeViewer, setContents, setItem, setMaxStackSize, setStorageContentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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- TheInventoryHoldersize- The size for thisInventoryMock.type- TheInventoryTypefor thisInventoryMock
-
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- TheInventoryHoldertype- TheInventoryTypefor thisInventoryMock
-
SimpleInventoryMock
public SimpleInventoryMock()Creates a very simple inventory with no holder, as nameInventory, a size of 9, and an inventory type ofInventoryType.CHEST.
-