Class PlayerInventoryViewMock
java.lang.Object
org.bukkit.inventory.InventoryView
be.seeseemelk.mockbukkit.inventory.InventoryViewMock
be.seeseemelk.mockbukkit.inventory.PlayerInventoryViewMock
Mock implementation of an
InventoryView
for players.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.inventory.InventoryView
InventoryView.Property
-
Field Summary
Fields inherited from class org.bukkit.inventory.InventoryView
OUTSIDE
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerInventoryViewMock
(@NotNull HumanEntity player, @NotNull Inventory top) Constructs a newPlayerInventoryViewMock
for the provided player, with the specified top inventory. -
Method Summary
Methods inherited from class be.seeseemelk.mockbukkit.inventory.InventoryViewMock
getBottomInventory, getPlayer, getTitle, getTopInventory, getType, setBottomInventory, setPlayer, setTopInventory, setType
Methods inherited from class org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getCursor, getInventory, getItem, getSlotType, setCursor, setItem, setProperty, title
-
Constructor Details
-
PlayerInventoryViewMock
public PlayerInventoryViewMock(@NotNull @NotNull HumanEntity player, @NotNull @NotNull Inventory top) Constructs a newPlayerInventoryViewMock
for the provided player, with the specified top inventory.- Parameters:
player
- The player to create the view for.top
- The top inventory.
-