Class MinestomGUIHolder

java.lang.Object
me.hsgamer.hscore.ui.BaseHolder<D>
me.hsgamer.hscore.minecraft.gui.GUIHolder<MinestomGUIDisplay>
me.hsgamer.hscore.minestom.gui.MinestomGUIHolder
All Implemented Interfaces:
me.hsgamer.hscore.ui.Holder<MinestomGUIDisplay>, me.hsgamer.hscore.ui.property.Initializable, me.hsgamer.hscore.ui.property.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()
      Specified by:
      init in interface me.hsgamer.hscore.ui.property.Initializable
      Overrides:
      init in class GUIHolder<MinestomGUIDisplay>
    • newDisplay

      @NotNull protected @NotNull MinestomGUIDisplay newDisplay(UUID uuid)
      Specified by:
      newDisplay in class me.hsgamer.hscore.ui.BaseHolder<MinestomGUIDisplay>
    • closeAll

      protected void closeAll(List<MinestomGUIDisplay> displays)
      Overrides:
      closeAll in class GUIHolder<MinestomGUIDisplay>