Class ChestInventoryMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.InventoryMock
be.seeseemelk.mockbukkit.inventory.ChestInventoryMock
Mock implementation of a Chest
InventoryType
.- See Also:
-
Constructor Summary
ConstructorDescriptionChestInventoryMock
(InventoryHolder holder, int size) Constructs a newChestInventoryMock
for the given holder. -
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, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, removeViewer, setContents, setItem, setMaxStackSize, setStorageContents
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ChestInventoryMock
Constructs a newChestInventoryMock
for the given holder.- Parameters:
holder
- The holder of the inventory.size
- The size of the inventory.- See Also:
-
-
Method Details
-
getSnapshot
Description copied from class:InventoryMock
Creates a snapshot of the inventory.- Overrides:
getSnapshot
in classInventoryMock
- Returns:
- An inventory snapshot.
-