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
org.bukkit.inventory.InventoryView.Property -
Field Summary
Fields inherited from class org.bukkit.inventory.InventoryView
OUTSIDE -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInventoryViewMock(@NotNull org.bukkit.entity.HumanEntity player, @NotNull org.bukkit.inventory.Inventory top) Constructs a newPlayerInventoryViewMockfor the provided player, with the specified top inventory. -
Method Summary
Methods inherited from class be.seeseemelk.mockbukkit.inventory.InventoryViewMock
getBottomInventory, getOriginalTitle, getPlayer, getTitle, getTopInventory, getType, setBottomInventory, setPlayer, setTitle, setTopInventory, setTypeMethods 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 org.bukkit.entity.HumanEntity player, @NotNull @NotNull org.bukkit.inventory.Inventory top) Constructs a newPlayerInventoryViewMockfor the provided player, with the specified top inventory.- Parameters:
player- The player to create the view for.top- The top inventory.
-