Class BaseDisplay<H extends Holder<?>>

java.lang.Object
me.hsgamer.hscore.ui.BaseDisplay<H>
Type Parameters:
H - the type of Holder
All Implemented Interfaces:
Display, Initializable, Updatable
Direct Known Subclasses:
GUIDisplay

public abstract class BaseDisplay<H extends Holder<?>> extends Object implements Display
A simple implementation of Display
  • Field Details

    • uuid

      protected final UUID uuid
    • holder

      protected final H extends Holder<?> holder
  • Constructor Details

    • BaseDisplay

      protected BaseDisplay(@NotNull @NotNull UUID uuid, @NotNull H holder)
      Create a new display
      Parameters:
      uuid - the unique id
      holder - the holder
  • Method Details

    • getHolder

      @NotNull public H getHolder()
      Description copied from interface: Display
      Get the holder for the display
      Specified by:
      getHolder in interface Display
      Returns:
      the holder
    • getUniqueId

      @NotNull public @NotNull UUID getUniqueId()
      Description copied from interface: Display
      Get the unique id for the display
      Specified by:
      getUniqueId in interface Display
      Returns:
      the unique id