Class SimpleInventoryMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.InventoryMock
be.seeseemelk.mockbukkit.inventory.SimpleInventoryMock
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a very simple inventory with no holder, as nameInventory, a size of 9, and an inventory type ofInventoryType.CHEST.SimpleInventoryMock(@Nullable InventoryHolder holder, int size, @NotNull InventoryType type) Creates a new inventory with size inherited from InventoryType.getDefaultSize().SimpleInventoryMock(@Nullable InventoryHolder holder, @NotNull 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 InventoryHolder holder, int size, @NotNull @NotNull 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 InventoryHolder holder, @NotNull @NotNull 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.
-