Enum Class BuiltinFonts

java.lang.Object
java.lang.Enum<BuiltinFonts>
net.darkhax.bookshelf.common.api.text.font.BuiltinFonts
All Implemented Interfaces:
Serializable, Comparable<BuiltinFonts>, Constable, IFontEntry

public enum BuiltinFonts extends Enum<BuiltinFonts> implements IFontEntry
Constant references to all built-in Minecraft fonts. These fonts are included in the original game and are not bundled or provided by Bookshelf.
  • Enum Constant Details

    • DEFAULT

      public static final BuiltinFonts DEFAULT
      The default pixel font that appears in the game.
    • ALT

      public static final BuiltinFonts ALT
      A magical font based on the Standard Galactic Alphabet. This font is used by the enchanting table and is associated with the enchantment system.
    • ILLAGER

      public static final BuiltinFonts ILLAGER
      A rune font that is used by the Illagers in Minecraft Dungeons.
    • UNIFORM

      public static final BuiltinFonts UNIFORM
      A plain font that is not stylized.
  • Field Details

    • FONT_IDS

      public static final Set<net.minecraft.resources.ResourceLocation> FONT_IDS
  • Method Details

    • values

      public static BuiltinFonts[] 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 BuiltinFonts 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
    • identifier

      public net.minecraft.resources.ResourceLocation identifier()
      Description copied from interface: IFontEntry
      Gets the ID of the font.
      Specified by:
      identifier in interface IFontEntry
      Returns:
      The font ID.