Class InventoryViewMock
java.lang.Object
org.bukkit.inventory.InventoryView
be.seeseemelk.mockbukkit.inventory.InventoryViewMock
- Direct Known Subclasses:
PlayerInventoryViewMock,SimpleInventoryViewMock
-
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
ConstructorsModifierConstructorDescriptionprotectedInventoryViewMock(HumanEntity player, String name, Inventory top, Inventory bottom, InventoryType type) -
Method Summary
Modifier and TypeMethodDescription@NotNull Inventory@NotNull HumanEntity@NotNull StringgetTitle()@NotNull Inventory@NotNull InventoryTypegetType()voidsetBottomInventory(Inventory inventory) Sets the bottom inventory.voidsetPlayer(HumanEntity player) Sets the player viewing.voidsetTopInventory(Inventory inventory) Sets the top inventory.voidsetType(InventoryType type) Sets the type of inventory view.Methods inherited from class org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getCursor, getInventory, getItem, getSlotType, setCursor, setItem, setProperty, title
-
Constructor Details
-
InventoryViewMock
protected InventoryViewMock(HumanEntity player, String name, Inventory top, Inventory bottom, InventoryType type)
-
-
Method Details
-
setTopInventory
Sets the top inventory.- Parameters:
inventory- The top inventory.
-
setBottomInventory
Sets the bottom inventory.- Parameters:
inventory- The bottom inventory.
-
setPlayer
Sets the player viewing.- Parameters:
player- The player viewing.
-
setType
Sets the type of inventory view.- Parameters:
type- The new type of inventory view.
-
getTopInventory
- Specified by:
getTopInventoryin classInventoryView
-
getBottomInventory
- Specified by:
getBottomInventoryin classInventoryView
-
getPlayer
- Specified by:
getPlayerin classInventoryView
-
getType
- Specified by:
getTypein classInventoryView
-
getTitle
- Specified by:
getTitlein classInventoryView
-