Class EnchantingInventoryMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.InventoryMock
be.seeseemelk.mockbukkit.inventory.EnchantingInventoryMock
- All Implemented Interfaces:
Iterable<org.bukkit.inventory.ItemStack>,org.bukkit.inventory.EnchantingInventory,org.bukkit.inventory.Inventory
public class EnchantingInventoryMock
extends InventoryMock
implements org.bukkit.inventory.EnchantingInventory
Mock implementation of an
EnchantingInventory.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEnchantingInventoryMock(@Nullable org.bukkit.inventory.InventoryHolder holder) Constructs a newEnchantingInventoryMockfor the given holder. -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.inventory.ItemStackgetItem()@Nullable org.bukkit.inventory.ItemStackvoidsetItem(@Nullable org.bukkit.inventory.ItemStack item) voidsetSecondary(@Nullable org.bukkit.inventory.ItemStack item) 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 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
-
EnchantingInventoryMock
public EnchantingInventoryMock(@Nullable @Nullable org.bukkit.inventory.InventoryHolder holder) Constructs a newEnchantingInventoryMockfor the given holder.- Parameters:
holder- The holder of the inventory.
-
-
Method Details
-
setItem
public void setItem(@Nullable @Nullable org.bukkit.inventory.ItemStack item) - Specified by:
setItemin interfaceorg.bukkit.inventory.EnchantingInventory
-
getItem
@Nullable public @Nullable org.bukkit.inventory.ItemStack getItem()- Specified by:
getItemin interfaceorg.bukkit.inventory.EnchantingInventory
-
setSecondary
public void setSecondary(@Nullable @Nullable org.bukkit.inventory.ItemStack item) - Specified by:
setSecondaryin interfaceorg.bukkit.inventory.EnchantingInventory
-
getSecondary
@Nullable public @Nullable org.bukkit.inventory.ItemStack getSecondary()- Specified by:
getSecondaryin interfaceorg.bukkit.inventory.EnchantingInventory
-