Enum Class TextType

java.lang.Object
java.lang.Enum<TextType>
dev.boze.api.render.TextType
All Implemented Interfaces:
Serializable, Comparable<TextType>, Constable

public enum TextType extends Enum<TextType>
Text rendering type

Defines different contexts for text rendering with appropriate font settings
  • Enum Constant Details

    • GUI

      public static final TextType GUI
      GUI text rendering - for menus and interfaces
    • HUD

      public static final TextType HUD
      HUD text rendering - for heads-up display elements
    • WORLD

      public static final TextType WORLD
      World text rendering - for text in the 3D world space
  • Method Details

    • values

      public static TextType[] 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 TextType 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