Enum FontType

java.lang.Object
java.lang.Enum<FontType>
net.minecraft.client.font.FontType
All Implemented Interfaces:
Serializable, Comparable<FontType>, java.lang.constant.Constable

@Environment(CLIENT)
public enum FontType
extends Enum<FontType>
Mappings:
Namespace Name
official dts
intermediary net/minecraft/class_394
named net/minecraft/client/font/FontType
  • Enum Constant Details

    • BITMAP

      public static final FontType BITMAP
      Mappings:
      Namespace Name Mixin selector
      official a Ldts;a:Ldts;
      intermediary field_2312 Lnet/minecraft/class_394;field_2312:Lnet/minecraft/class_394;
      named BITMAP Lnet/minecraft/client/font/FontType;BITMAP:Lnet/minecraft/client/font/FontType;
    • TTF

      public static final FontType TTF
      Mappings:
      Namespace Name Mixin selector
      official b Ldts;b:Ldts;
      intermediary field_2317 Lnet/minecraft/class_394;field_2317:Lnet/minecraft/class_394;
      named TTF Lnet/minecraft/client/font/FontType;TTF:Lnet/minecraft/client/font/FontType;
    • LEGACY_UNICODE

      public static final FontType LEGACY_UNICODE
      Mappings:
      Namespace Name Mixin selector
      official c Ldts;c:Ldts;
      intermediary field_2313 Lnet/minecraft/class_394;field_2313:Lnet/minecraft/class_394;
      named LEGACY_UNICODE Lnet/minecraft/client/font/FontType;LEGACY_UNICODE:Lnet/minecraft/client/font/FontType;
  • Field Details

    • REGISTRY

      private static final Map<String,​FontType> REGISTRY
      Mappings:
      Namespace Name Mixin selector
      official d Ldts;d:Ljava/util/Map;
      intermediary field_2311 Lnet/minecraft/class_394;field_2311:Ljava/util/Map;
      named REGISTRY Lnet/minecraft/client/font/FontType;REGISTRY:Ljava/util/Map;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official e Ldts;e:Ljava/lang/String;
      intermediary field_2314 Lnet/minecraft/class_394;field_2314:Ljava/lang/String;
      named id Lnet/minecraft/client/font/FontType;id:Ljava/lang/String;
    • loaderFactory

      private final Function<JsonObject,​FontLoader> loaderFactory
      Mappings:
      Namespace Name Mixin selector
      official f Ldts;f:Ljava/util/function/Function;
      intermediary field_2315 Lnet/minecraft/class_394;field_2315:Ljava/util/function/Function;
      named loaderFactory Lnet/minecraft/client/font/FontType;loaderFactory:Ljava/util/function/Function;
  • Constructor Details

    • FontType

      private FontType​(String id, Function<JsonObject,​FontLoader> factory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldts;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_394;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/client/font/FontType;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/Function;)V
  • Method Details

    • values

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

      public static FontType valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • byId

      public static FontType byId​(String id)
      Mappings:
      Namespace Name Mixin selector
      official a Ldts;a(Ljava/lang/String;)Ldts;
      intermediary method_2048 Lnet/minecraft/class_394;method_2048(Ljava/lang/String;)Lnet/minecraft/class_394;
      named byId Lnet/minecraft/client/font/FontType;byId(Ljava/lang/String;)Lnet/minecraft/client/font/FontType;
    • createLoader

      public FontLoader createLoader​(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Ldts;a(Lcom/google/gson/JsonObject;)Ldtr;
      intermediary method_2047 Lnet/minecraft/class_394;method_2047(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_389;
      named createLoader Lnet/minecraft/client/font/FontType;createLoader(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/font/FontLoader;