Record Class ReferenceFont

java.lang.Object
java.lang.Record
net.minecraft.client.font.ReferenceFont
Record Components:
id -
All Implemented Interfaces:
FontLoader

@Environment(CLIENT) public record ReferenceFont(Identifier id) extends Record implements FontLoader
Mappings:
Namespace Name
named net/minecraft/client/font/ReferenceFont
intermediary net/minecraft/class_8541
official flq
named id
intermediary comp_1523
official c
  • Field Details

    • id

      private final Identifier id
      The field for the id record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<ReferenceFont> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/font/ReferenceFont;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_44762 Lnet/minecraft/class_8541;field_44762:Lcom/mojang/serialization/MapCodec;
      official a Lflq;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • ReferenceFont

      public ReferenceFont(Identifier id)
      Creates an instance of a ReferenceFont record class.
      Parameters:
      id - the value for the id record component
  • Method Details

    • getType

      public FontType getType()
      Specified by:
      getType in interface FontLoader
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/font/FontLoader;getType()Lnet/minecraft/client/font/FontType;
      intermediary method_51731 Lnet/minecraft/class_389;method_51731()Lnet/minecraft/class_394;
      official a Lflo;a()Lflp;
    • build

      public com.mojang.datafixers.util.Either<FontLoader.Loadable,FontLoader.Reference> build()
      Specified by:
      build in interface FontLoader
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/client/font/FontLoader;build()Lcom/mojang/datafixers/util/Either;
      intermediary method_51734 Lnet/minecraft/class_389;method_51734()Lcom/mojang/datafixers/util/Either;
      official b Lflo;b()Lcom/mojang/datafixers/util/Either;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public Identifier id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component