Class BeaconInventoryMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.InventoryMock
be.seeseemelk.mockbukkit.inventory.BeaconInventoryMock
- All Implemented Interfaces:
Iterable<ItemStack>,BeaconInventory,Inventory
Mock implementation of a
BeaconInventory.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBeaconInventoryMock(@Nullable InventoryHolder holder) Constructs a newAbstractHorseInventoryMockfor the given holder. -
Method Summary
Modifier and TypeMethodDescription@Nullable ItemStackgetItem()@NotNull BeaconInventoryMockCreates a snapshot of the inventory.voidMethods 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, setStorageContentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContentsMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BeaconInventoryMock
Constructs a newAbstractHorseInventoryMockfor the given holder.- Parameters:
holder- The holder of the inventory.
-
-
Method Details
-
setItem
- Specified by:
setItemin interfaceBeaconInventory
-
getItem
- Specified by:
getItemin interfaceBeaconInventory
-
getSnapshot
Description copied from class:InventoryMockCreates a snapshot of the inventory.- Overrides:
getSnapshotin classInventoryMock- Returns:
- An inventory snapshot.
-