Package me.totalfreedom.display
Class DisplayableView
java.lang.Object
org.bukkit.inventory.InventoryView
me.totalfreedom.display.DisplayableView
public class DisplayableView
extends org.bukkit.inventory.InventoryView
A view of a
Displayable inventory.
This class can be used to display two separate Displayable objects to the Player.
-
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
ConstructorsConstructorDescriptionDisplayableView(org.bukkit.entity.Player player, Displayable top, Displayable bottom) Creates a new DisplayableView. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.Inventory@NotNull String@NotNull org.bukkit.entity.HumanEntity@NotNull StringgetTitle()Deprecated, for removal: This API element is subject to removal in a future version.@NotNull org.bukkit.inventory.Inventory@NotNull org.bukkit.event.inventory.InventoryTypegetType()voidMethods inherited from class org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getCursor, getInventory, getItem, getSlotType, setCursor, setItem, setProperty, title
-
Constructor Details
-
DisplayableView
Creates a new DisplayableView.- Parameters:
player- The player viewing the inventories involved in this transaction.top- The upper inventory involved in this transaction.bottom- The lower inventory involved in this transaction.
-
-
Method Details
-
getTopInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getTopInventory()- Specified by:
getTopInventoryin classorg.bukkit.inventory.InventoryView
-
getBottomInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getBottomInventory()- Specified by:
getBottomInventoryin classorg.bukkit.inventory.InventoryView
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.HumanEntity getPlayer()- Specified by:
getPlayerin classorg.bukkit.inventory.InventoryView
-
getType
@NotNull public @NotNull org.bukkit.event.inventory.InventoryType getType()- Specified by:
getTypein classorg.bukkit.inventory.InventoryView
-
getTitle
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getTitlein classorg.bukkit.inventory.InventoryView
-
setTitle
- Specified by:
setTitlein classorg.bukkit.inventory.InventoryView
-
getOriginalTitle
- Specified by:
getOriginalTitlein classorg.bukkit.inventory.InventoryView
-