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

    Constructors
    Constructor
    Description
    DisplayableView(org.bukkit.entity.Player player, Displayable top, Displayable bottom)
    Creates a new DisplayableView.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.inventory.Inventory
     
    @NotNull String
     
    @NotNull org.bukkit.entity.HumanEntity
     
    @NotNull String
    Deprecated, for removal: This API element is subject to removal in a future version.
    @NotNull org.bukkit.inventory.Inventory
     
    @NotNull org.bukkit.event.inventory.InventoryType
     
    void
    setTitle(@NotNull String title)
     

    Methods inherited from class org.bukkit.inventory.InventoryView

    close, convertSlot, countSlots, getCursor, getInventory, getItem, getSlotType, setCursor, setItem, setProperty, title

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DisplayableView

      public DisplayableView(org.bukkit.entity.Player player, Displayable top, Displayable bottom)
      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:
      getTopInventory in class org.bukkit.inventory.InventoryView
    • getBottomInventory

      @NotNull public @NotNull org.bukkit.inventory.Inventory getBottomInventory()
      Specified by:
      getBottomInventory in class org.bukkit.inventory.InventoryView
    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.HumanEntity getPlayer()
      Specified by:
      getPlayer in class org.bukkit.inventory.InventoryView
    • getType

      @NotNull public @NotNull org.bukkit.event.inventory.InventoryType getType()
      Specified by:
      getType in class org.bukkit.inventory.InventoryView
    • getTitle

      @Deprecated(forRemoval=true, since="1.16") @NotNull public @NotNull String getTitle()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getTitle in class org.bukkit.inventory.InventoryView
    • setTitle

      public void setTitle(@NotNull @NotNull String title)
      Specified by:
      setTitle in class org.bukkit.inventory.InventoryView
    • getOriginalTitle

      @NotNull public @NotNull String getOriginalTitle()
      Specified by:
      getOriginalTitle in class org.bukkit.inventory.InventoryView