Interface Holder<D extends Display>

Type Parameters:
D - the type of the display
All Superinterfaces:
Initializable, Updatable
All Known Implementing Classes:
BaseHolder, BukkitGUIHolder, GUIHolder, MinestomGUIHolder

public interface Holder<D extends Display> extends Initializable, Updatable
The holder for all displays
  • Method Summary

    Modifier and Type
    Method
    Description
    createDisplay(@NotNull UUID uuid)
    Create a display with the unique id
    Optional<@NotNull D>
    getDisplay(@NotNull UUID uuid)
    Get the display for the unique id
    <E> void
    handleEvent(E event)
    Handle the event
    void
    Remove all displays
    void
    removeDisplay(@NotNull UUID uuid)
    Remove a display with the unique id
    default void
    update(UUID uuid)
    Update the display for the unique id

    Methods inherited from interface me.hsgamer.hscore.ui.property.Initializable

    init, stop

    Methods inherited from interface me.hsgamer.hscore.ui.property.Updatable

    update
  • Method Details

    • createDisplay

      @NotNull D createDisplay(@NotNull @NotNull UUID uuid)
      Create a display with the unique id
      Parameters:
      uuid - the unique id
      Returns:
      the display
    • removeDisplay

      void removeDisplay(@NotNull @NotNull UUID uuid)
      Remove a display with the unique id
      Parameters:
      uuid - the unique id
    • getDisplay

      Optional<@NotNull D> getDisplay(@NotNull @NotNull UUID uuid)
      Get the display for the unique id
      Parameters:
      uuid - the unique id
      Returns:
      the display
    • removeAllDisplay

      void removeAllDisplay()
      Remove all displays
    • handleEvent

      <E> void handleEvent(@NotNull E event)
      Handle the event
      Parameters:
      event - the event
    • update

      default void update(UUID uuid)
      Update the display for the unique id
      Parameters:
      uuid - the unique id