Class SimpleInventoryViewMock
java.lang.Object
org.bukkit.inventory.InventoryView
be.seeseemelk.mockbukkit.inventory.InventoryViewMock
be.seeseemelk.mockbukkit.inventory.SimpleInventoryViewMock
A basic inventory view.
- 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
ConstructorsConstructorDescriptionCreates a very simple mockIntventoryViewwith as player, top, and bottomnull, and as typeInventoryType.CHEST.SimpleInventoryViewMock(org.bukkit.entity.HumanEntity player, org.bukkit.inventory.Inventory top, org.bukkit.inventory.Inventory bottom, org.bukkit.event.inventory.InventoryType type) Constructs a newSimpleInventoryViewMockwith the provided parameters, and "Inventory" as the name. -
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
-
SimpleInventoryViewMock
public SimpleInventoryViewMock(org.bukkit.entity.HumanEntity player, org.bukkit.inventory.Inventory top, org.bukkit.inventory.Inventory bottom, org.bukkit.event.inventory.InventoryType type) Constructs a newSimpleInventoryViewMockwith the provided parameters, and "Inventory" as the name.- Parameters:
player- The player this view is for.top- The top inventory.bottom- The bottom inventory.type- The type of the inventory.
-
SimpleInventoryViewMock
public SimpleInventoryViewMock()Creates a very simple mockIntventoryViewwith as player, top, and bottomnull, and as typeInventoryType.CHEST.
-