Enum Class FontType

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

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

    • BITMAP

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

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

      public static final FontType SPACE
      Mappings:
      Namespace Name Mixin selector
      named SPACE Lnet/minecraft/client/font/FontType;SPACE:Lnet/minecraft/client/font/FontType;
      intermediary field_37904 Lnet/minecraft/class_394;field_37904:Lnet/minecraft/class_394;
      official c Lfkj;c:Lfkj;
    • UNIHEX

      public static final FontType UNIHEX
      Mappings:
      Namespace Name Mixin selector
      named UNIHEX Lnet/minecraft/client/font/FontType;UNIHEX:Lnet/minecraft/client/font/FontType;
      intermediary field_2313 Lnet/minecraft/class_394;field_2313:Lnet/minecraft/class_394;
      official d Lfkj;d:Lfkj;
    • REFERENCE

      public static final FontType REFERENCE
      Mappings:
      Namespace Name Mixin selector
      named REFERENCE Lnet/minecraft/client/font/FontType;REFERENCE:Lnet/minecraft/client/font/FontType;
      intermediary field_44761 Lnet/minecraft/class_394;field_44761:Lnet/minecraft/class_394;
      official e Lfkj;e:Lfkj;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<FontType> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/font/FontType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_44802 Lnet/minecraft/class_394;field_44802:Lcom/mojang/serialization/Codec;
      official f Lfkj;f:Lcom/mojang/serialization/Codec;
    • id

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

      private final com.mojang.serialization.MapCodec<? extends FontLoader> loaderCodec
      Mappings:
      Namespace Name Mixin selector
      named loaderCodec Lnet/minecraft/client/font/FontType;loaderCodec:Lcom/mojang/serialization/MapCodec;
      intermediary field_44803 Lnet/minecraft/class_394;field_44803:Lcom/mojang/serialization/MapCodec;
      official h Lfkj;h:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • FontType

      private FontType(String id, com.mojang.serialization.MapCodec<? extends FontLoader> loaderCodec)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/FontType;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
      intermediary <init> Lnet/minecraft/class_394;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
      official <init> Lfkj;<init>(Ljava/lang/String;ILjava/lang/String;Lcom/mojang/serialization/MapCodec;)V
  • Method Details

    • values

      public static FontType[] 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 FontType 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
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;
    • getLoaderCodec

      public com.mojang.serialization.MapCodec<? extends FontLoader> getLoaderCodec()
      Mappings:
      Namespace Name Mixin selector
      named getLoaderCodec Lnet/minecraft/client/font/FontType;getLoaderCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_51758 Lnet/minecraft/class_394;method_51758()Lcom/mojang/serialization/MapCodec;
      official a Lfkj;a()Lcom/mojang/serialization/MapCodec;