Class StatefulDeclarativeGui.State

java.lang.Object
com.ultikits.ultitools.abstracts.gui.declarative.engine.StatefulDeclarativeGui.State
Enclosing class:
StatefulDeclarativeGui<T extends StatefulDeclarativeGui<T>.State>

public abstract class StatefulDeclarativeGui.State extends Object
The base class for a declarative GUI's state.
  • Field Details

  • Constructor Details

    • State

      public State()
  • Method Details

    • setState

      protected void setState(@NotNull @NotNull Runnable action)
      Triggers a rebuild.
    • getGui

      @NotNull protected @NotNull StatefulDeclarativeGui<T> getGui()
      Gets the associated GUI.
      Returns:
      the GUI instance
    • getPlayer

      @NotNull protected @NotNull org.bukkit.entity.Player getPlayer()
      Gets the player.
      Returns:
      the player