Interface SpectatorInventoryView<Slot>

Type Parameters:
Slot - the inventory's slot type.
All Known Subinterfaces:
EnderSpectatorInventoryView, MainSpectatorInventoryView

public interface SpectatorInventoryView<Slot>
Represents an open window for a SpectatorInventory.
  • Method Details

    • getTopInventory

      SpectatorInventory<Slot> getTopInventory()
      Get the top inventory of this view.
      Returns:
      the top inventory
    • getTrackedDifference

      @Nullable Difference getTrackedDifference()
      Get the difference tracked by this window.
      Returns:
      the difference
    • getCreationOptions

      CreationOptions<Slot> getCreationOptions()
      Get the options this window was created with.
      Returns:
      a copy of the creation options
    • getTitle

      String getTitle()
      Get the title of this InventoryView.
      Returns:
      the title
    • getMirror

      Mirror<Slot> getMirror()
      Get the mirror the SpectatorInventory is viewed through.
      Returns:
      the mirror
      See Also:
    • getTarget

      Target getTarget()
      Get the target of the SpectatorInventory.
      Returns:
      the target