Package net.minecraft.client.font
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 official erl
intermediary net/minecraft/class_8557
named net/minecraft/client/font/TrueTypeFontLoader
official c
intermediary comp_1524
named location
official d
intermediary comp_1525
named size
official e
intermediary comp_1526
named oversample
official f
intermediary comp_1527
named shift
official g
intermediary comp_1528
named skip
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.FontLoader
FontLoader.Loadable, FontLoader.Reference
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TrueTypeFontLoader>
private final Identifier
The field for thelocation
record component.private final float
The field for theoversample
record component.private final TrueTypeFontLoader.Shift
The field for theshift
record component.private final float
The field for thesize
record component.private final String
The field for theskip
record component.private static final com.mojang.serialization.Codec<String>
-
Constructor Summary
ConstructorDescriptionTrueTypeFontLoader
(Identifier identifier, float float2, float float3, TrueTypeFontLoader.Shift shift, String string) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<FontLoader.Loadable,
FontLoader.Reference> build()
final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.private Font
load
(ResourceManager resourceManager) location()
Returns the value of thelocation
record component.float
Returns the value of theoversample
record component.shift()
Returns the value of theshift
record component.float
size()
Returns the value of thesize
record component.skip()
Returns the value of theskip
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
location
The field for thelocation
record component. -
size
private final float sizeThe field for thesize
record component. -
oversample
private final float oversampleThe field for theoversample
record component. -
shift
The field for theshift
record component. -
skip
The field for theskip
record component. -
SKIP_CODEC
- Mappings:
Namespace Name Mixin selector official h
Lerl;h:Lcom/mojang/serialization/Codec;
intermediary field_44805
Lnet/minecraft/class_8557;field_44805:Lcom/mojang/serialization/Codec;
named SKIP_CODEC
Lnet/minecraft/client/font/TrueTypeFontLoader;SKIP_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lerl;a:Lcom/mojang/serialization/MapCodec;
intermediary field_44804
Lnet/minecraft/class_8557;field_44804:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/client/font/TrueTypeFontLoader;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
TrueTypeFontLoader
public TrueTypeFontLoader(Identifier identifier, float float2, float float3, TrueTypeFontLoader.Shift shift, String string)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceFontLoader
- Mappings:
Namespace Name Mixin selector official a
Leri;a()Lerj;
intermediary method_51731
Lnet/minecraft/class_389;method_51731()Lnet/minecraft/class_394;
named getType
Lnet/minecraft/client/font/FontLoader;getType()Lnet/minecraft/client/font/FontType;
-
build
- Specified by:
build
in interfaceFontLoader
- Mappings:
Namespace Name Mixin selector official b
Leri;b()Lcom/mojang/datafixers/util/Either;
intermediary method_51734
Lnet/minecraft/class_389;method_51734()Lcom/mojang/datafixers/util/Either;
named build
Lnet/minecraft/client/font/FontLoader;build()Lcom/mojang/datafixers/util/Either;
-
load
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lerl;a(Lakv;)Lefy;
intermediary method_51759
Lnet/minecraft/class_8557;method_51759(Lnet/minecraft/class_3300;)Lnet/minecraft/class_390;
named load
Lnet/minecraft/client/font/TrueTypeFontLoader;load(Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/client/font/Font;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
size
public float size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
oversample
public float oversample()Returns the value of theoversample
record component.- Returns:
- the value of the
oversample
record component
-
shift
Returns the value of theshift
record component.- Returns:
- the value of the
shift
record component
-
skip
Returns the value of theskip
record component.- Returns:
- the value of the
skip
record component
-