Record Class TrueTypeGlyphProviderDefinition

java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.providers.TrueTypeGlyphProviderDefinition
All Implemented Interfaces:
GlyphProviderDefinition

public record TrueTypeGlyphProviderDefinition(ResourceLocation location, float size, float oversample, TrueTypeGlyphProviderDefinition.Shift shift, String skip) extends Record implements GlyphProviderDefinition
  • Field Details

    • location

      private final ResourceLocation 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

      The field for the shift record component.
    • skip

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

      private static final com.mojang.serialization.Codec<String> SKIP_LIST_CODEC
    • CODEC

      public static final com.mojang.serialization.MapCodec<TrueTypeGlyphProviderDefinition> CODEC
  • Constructor Details

    • TrueTypeGlyphProviderDefinition

      public TrueTypeGlyphProviderDefinition(ResourceLocation location, float size, float oversample, TrueTypeGlyphProviderDefinition.Shift shift, String skip)
      Creates an instance of a TrueTypeGlyphProviderDefinition record class.
      Parameters:
      location - the value for the location record component
      size - the value for the size record component
      oversample - the value for the oversample record component
      shift - the value for the shift record component
      skip - the value for the skip record component
  • Method Details

    • type

      public GlyphProviderType type()
      Specified by:
      type in interface GlyphProviderDefinition
    • unpack

      public com.mojang.datafixers.util.Either<GlyphProviderDefinition.Loader,GlyphProviderDefinition.Reference> unpack()
      Specified by:
      unpack in interface GlyphProviderDefinition
    • load

      private GlyphProvider load(ResourceManager p_286229_) throws IOException
      Throws:
      IOException
    • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • location

      public ResourceLocation 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

      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