Class GUIHolder<D extends GUIDisplay<?>>

java.lang.Object
me.hsgamer.hscore.ui.BaseHolder<D>
me.hsgamer.hscore.minecraft.gui.GUIHolder<D>
All Implemented Interfaces:
Holder<D>, Initializable, Updatable
Direct Known Subclasses:
BukkitGUIHolder, MinestomGUIHolder

public abstract class GUIHolder<D extends GUIDisplay<?>> extends BaseHolder<D>
The base Holder for UI in Minecraft
  • Constructor Details

    • GUIHolder

      public GUIHolder()
  • Method Details

    • getButtonMap

      @NotNull public @NotNull ButtonMap getButtonMap()
      Get the button map
      Returns:
      the button map
    • setButtonMap

      public void setButtonMap(@NotNull @NotNull ButtonMap buttonMap)
      Set the button map
      Parameters:
      buttonMap - the button map
    • init

      public void init()
      Description copied from interface: Initializable
      Initialize some properties for the object
    • stop

      public void stop()
      Description copied from interface: Initializable
      Stop the object
      Specified by:
      stop in interface Initializable
      Overrides:
      stop in class BaseHolder<D extends GUIDisplay<?>>
    • onOpen

      protected void onOpen(@NotNull @NotNull OpenEvent event)
      Handle open event
      Parameters:
      event - the event
    • onClick

      protected void onClick(@NotNull @NotNull ClickEvent event)
      Handle click event
      Parameters:
      event - the event
    • onClose

      protected void onClose(@NotNull @NotNull CloseEvent event)
      Handle close event
      Parameters:
      event - the event
    • closeAll

      protected void closeAll(List<D> displays)
      Close all displays
      Parameters:
      displays - the list of closed displays to be closed