Class MinestomGUIHolder

All Implemented Interfaces:
Holder<MinestomGUIDisplay>, Initializable, Updatable

public class MinestomGUIHolder extends GUIHolder<MinestomGUIDisplay>
The GUIHolder for Minestom
  • Constructor Details

    • MinestomGUIHolder

      public MinestomGUIHolder()
  • Method Details

    • getInventoryType

      @NotNull public @NotNull net.minestom.server.inventory.InventoryType getInventoryType()
      Get the inventory type
      Returns:
      the inventory type
    • setInventoryType

      public void setInventoryType(@NotNull @NotNull net.minestom.server.inventory.InventoryType inventoryType)
      Set the inventory type
      Parameters:
      inventoryType - the inventory type
    • getTitleFunction

      @NotNull public @NotNull Function<@NotNull UUID,@NotNull net.kyori.adventure.text.Component> getTitleFunction()
      Get the title function
      Returns:
      the title function
    • setTitleFunction

      public void setTitleFunction(Function<@NotNull UUID,@NotNull net.kyori.adventure.text.Component> titleFunction)
      Set the title function
      Parameters:
      titleFunction - the title function
    • getTitle

      @NotNull public @NotNull net.kyori.adventure.text.Component getTitle(@NotNull @NotNull UUID uuid)
      Get the title for the unique id
      Parameters:
      uuid - the unique id
      Returns:
      the title
      See Also:
    • setTitle

      public void setTitle(@NotNull @NotNull net.kyori.adventure.text.Component title)
      Set the title
      Parameters:
      title - the title
      See Also:
    • getClosePredicate

      @NotNull public @NotNull Predicate<@NotNull UUID> getClosePredicate()
      Get the close predicate
      Returns:
      the close predicate
    • setClosePredicate

      public void setClosePredicate(@NotNull @NotNull Predicate<@NotNull UUID> closePredicate)
      Set the close predicate
      Parameters:
      closePredicate - the close predicate
    • init

      public void init()
      Description copied from interface: Initializable
      Initialize some properties for the object
      Specified by:
      init in interface Initializable
      Overrides:
      init in class GUIHolder<MinestomGUIDisplay>
    • newDisplay

      @NotNull protected @NotNull MinestomGUIDisplay newDisplay(UUID uuid)
      Description copied from class: BaseHolder
      Make a new display
      Specified by:
      newDisplay in class BaseHolder<MinestomGUIDisplay>
      Parameters:
      uuid - the unique id
      Returns:
      the display
    • closeAll

      protected void closeAll(List<MinestomGUIDisplay> displays)
      Description copied from class: GUIHolder
      Close all displays
      Overrides:
      closeAll in class GUIHolder<MinestomGUIDisplay>
      Parameters:
      displays - the list of closed displays to be closed