Enum Class GuiUiMode

java.lang.Object
java.lang.Enum<GuiUiMode>
com.render.api.gui.GuiUiMode
All Implemented Interfaces:
Serializable, Comparable<GuiUiMode>, Constable

public enum GuiUiMode extends Enum<GuiUiMode>
Selects the retained GUI runtime used by a view or managed HUD surface.

MODERN is the default. Select LEGACY explicitly only when compatibility with the original component-local layout and styling behavior is required.

  • Enum Constant Details

    • LEGACY

      public static final GuiUiMode LEGACY
      Uses the original component-local layout and style behavior. This mode must be selected explicitly.
    • MODERN

      public static final GuiUiMode MODERN
      Enables the typed Java cascade, inheritance, selectors, and pseudo-elements. This is the default mode.
  • Method Details

    • values

      public static GuiUiMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GuiUiMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null