Record Class TrueTypeFontLoader

java.lang.Object
java.lang.Record
net.minecraft.client.font.TrueTypeFontLoader
Record Components:
location -
size -
oversample -
shift -
skip -
All Implemented Interfaces:
FontLoader

@Environment(CLIENT) public record TrueTypeFontLoader(Identifier location, float size, float oversample, TrueTypeFontLoader.Shift shift, String skip) extends Record implements FontLoader
Mappings:
Namespace Name
named net/minecraft/client/font/TrueTypeFontLoader
intermediary net/minecraft/class_8557
official fkk
named location
intermediary comp_1524
official c
named size
intermediary comp_1525
official d
named oversample
intermediary comp_1526
official e
named shift
intermediary comp_1527
official f
named skip
intermediary comp_1528
official g
  • Field Details

    • location

      private final Identifier location
      The field for the location record component.
    • size

      private final float size
      The field for the size record component.
    • oversample

      private final float oversample
      The field for the oversample record component.
    • shift

      private final TrueTypeFontLoader.Shift shift
      The field for the shift record component.
    • skip

      private final String skip
      The field for the skip record component.
    • SKIP_CODEC

      private static final com.mojang.serialization.Codec<String> SKIP_CODEC
      Mappings:
      Namespace Name Mixin selector
      named SKIP_CODEC Lnet/minecraft/client/font/TrueTypeFontLoader;SKIP_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_44805 Lnet/minecraft/class_8557;field_44805:Lcom/mojang/serialization/Codec;
      official h Lfkk;h:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<TrueTypeFontLoader> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/font/TrueTypeFontLoader;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_44804 Lnet/minecraft/class_8557;field_44804:Lcom/mojang/serialization/MapCodec;
      official a Lfkk;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • 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 Lfkh;a()Lfki;
    • 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 Lfkh;b()Lcom/mojang/datafixers/util/Either;
    • load

      private Font load(ResourceManager resourceManager) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/font/TrueTypeFontLoader;load(Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/client/font/Font;
      intermediary method_51759 Lnet/minecraft/class_8557;method_51759(Lnet/minecraft/class_3300;)Lnet/minecraft/class_390;
      official a Lfkk;a(Laup;)Leyc;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • location

      public Identifier location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • size

      public float size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • oversample

      public float oversample()
      Returns the value of the oversample record component.
      Returns:
      the value of the oversample record component
    • shift

      public TrueTypeFontLoader.Shift shift()
      Returns the value of the shift record component.
      Returns:
      the value of the shift record component
    • skip

      public String skip()
      Returns the value of the skip record component.
      Returns:
      the value of the skip record component