Class LecternInventoryMock
java.lang.Object
org.mockbukkit.mockbukkit.inventory.InventoryMock
org.mockbukkit.mockbukkit.inventory.LecternInventoryMock
- All Implemented Interfaces:
Iterable<ItemStack>,Inventory,LecternInventory
Mock implementation of a
LecternInventory.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionLecternInventoryMock(InventoryHolder holder) Constructs a newLecternInventoryMockfor the given holder.protectedLecternInventoryMock(@NotNull LecternInventoryMock inventory) -
Method Summary
Methods inherited from class org.mockbukkit.mockbukkit.inventory.InventoryMock
addItem, addItem, addViewer, addViewers, addViewers, all, all, assertContainsAny, assertContainsAtLeast, assertTrueForAll, assertTrueForNonNulls, assertTrueForSome, clear, clear, close, contains, contains, contains, contains, containsAtLeast, equals, first, first, firstEmpty, getContents, getCustomTitle, getHolder, getItem, getLocation, getMaxStackSize, getNumberOfItems, getSize, getStorageContents, getTitle, getType, getViewers, hashCode, isEmpty, isIdentical, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, removeViewer, setContents, setCustomTitle, setItem, setMaxStackSize, setStorageContents, stream, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, 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, spliteratorMethods inherited from interface org.bukkit.inventory.LecternInventory
getBook, setBook
-
Constructor Details
-
LecternInventoryMock
Constructs a newLecternInventoryMockfor the given holder.- Parameters:
holder- The holder of the inventory.
-
LecternInventoryMock
-
-
Method Details
-
getSnapshot
Description copied from class:InventoryMockCreates a snapshot of the inventory.- Overrides:
getSnapshotin classInventoryMock- Returns:
- An inventory snapshot.
-
getHolder
- Specified by:
getHolderin interfaceInventory- Specified by:
getHolderin interfaceLecternInventory- Overrides:
getHolderin classInventoryMock
-