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 - named - net/minecraft/client/font/TrueTypeFontLoader- intermediary - net/minecraft/class_8557- official - fsa- 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
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.client.font.FontLoaderFontLoader.Loadable, FontLoader.Provider, FontLoader.Reference
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TrueTypeFontLoader> private final IdentifierThe field for thelocationrecord component.private final floatThe field for theoversamplerecord component.private final TrueTypeFontLoader.ShiftThe field for theshiftrecord component.private final floatThe field for thesizerecord component.private final StringThe field for theskiprecord component.private static final com.mojang.serialization.Codec<String> 
- 
Constructor SummaryConstructorsConstructorDescriptionTrueTypeFontLoader(Identifier identifier, float float2, float float3, TrueTypeFontLoader.Shift shift, String string) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<FontLoader.Loadable, FontLoader.Reference> build()final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.private Fontload(ResourceManager resourceManager) location()Returns the value of thelocationrecord component.floatReturns the value of theoversamplerecord component.shift()Returns the value of theshiftrecord component.floatsize()Returns the value of thesizerecord component.skip()Returns the value of theskiprecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
locationThe field for thelocationrecord component.
- 
sizeprivate final float sizeThe field for thesizerecord component.
- 
oversampleprivate final float oversampleThe field for theoversamplerecord component.
- 
shiftThe field for theshiftrecord component.
- 
skipThe field for theskiprecord component.
- 
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- Lfsa;h:Lcom/mojang/serialization/Codec;
 
- 
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- Lfsa;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
TrueTypeFontLoaderpublic TrueTypeFontLoader(Identifier identifier, float float2, float float3, TrueTypeFontLoader.Shift shift, String string) 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein 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- Lfrx;a()Lfry;
 
- 
build- Specified by:
- buildin 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- Lfrx;b()Lcom/mojang/datafixers/util/Either;
 
- 
load- 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- Lfsa;a(Laup;)Lfdu;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
locationReturns the value of thelocationrecord component.- Returns:
- the value of the locationrecord component
 
- 
sizepublic float size()Returns the value of thesizerecord component.- Returns:
- the value of the sizerecord component
 
- 
oversamplepublic float oversample()Returns the value of theoversamplerecord component.- Returns:
- the value of the oversamplerecord component
 
- 
shiftReturns the value of theshiftrecord component.- Returns:
- the value of the shiftrecord component
 
- 
skipReturns the value of theskiprecord component.- Returns:
- the value of the skiprecord component
 
 
-