Package net.minecraft.client.font
Class TrueTypeFontLoader
java.lang.Object
net.minecraft.client.font.TrueTypeFontLoader
- All Implemented Interfaces:
FontLoader
@Environment(CLIENT) public class TrueTypeFontLoader extends Object implements FontLoader
- Mappings:
Namespace Name official dtuintermediary net/minecraft/class_396named net/minecraft/client/font/TrueTypeFontLoader
-
Field Summary
Fields Modifier and Type Field Description private StringexcludedCharactersprivate Identifierfilenameprivate static LoggerLOGGERprivate floatoversampleprivate floatshiftXprivate floatshiftYprivate floatsize -
Constructor Summary
Constructors Constructor Description TrueTypeFontLoader(Identifier filename, float size, float oversample, float shiftX, float shiftY, String excludedCharacters) -
Method Summary
Modifier and Type Method Description static FontLoaderfromJson(JsonObject json)Fontload(ResourceManager manager)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdtu;a:Lorg/apache/logging/log4j/Logger;intermediary field_16242Lnet/minecraft/class_396;field_16242:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/font/TrueTypeFontLoader;LOGGER:Lorg/apache/logging/log4j/Logger;
-
filename
- Mappings:
Namespace Name Mixin selector official bLdtu;b:Lwb;intermediary field_2330Lnet/minecraft/class_396;field_2330:Lnet/minecraft/class_2960;named filenameLnet/minecraft/client/font/TrueTypeFontLoader;filename:Lnet/minecraft/util/Identifier;
-
size
private final float size- Mappings:
Namespace Name Mixin selector official cLdtu;c:Fintermediary field_2329Lnet/minecraft/class_396;field_2329:Fnamed sizeLnet/minecraft/client/font/TrueTypeFontLoader;size:F
-
oversample
private final float oversample- Mappings:
Namespace Name Mixin selector official dLdtu;d:Fintermediary field_2328Lnet/minecraft/class_396;field_2328:Fnamed oversampleLnet/minecraft/client/font/TrueTypeFontLoader;oversample:F
-
shiftX
private final float shiftX- Mappings:
Namespace Name Mixin selector official eLdtu;e:Fintermediary field_2327Lnet/minecraft/class_396;field_2327:Fnamed shiftXLnet/minecraft/client/font/TrueTypeFontLoader;shiftX:F
-
shiftY
private final float shiftY- Mappings:
Namespace Name Mixin selector official fLdtu;f:Fintermediary field_2326Lnet/minecraft/class_396;field_2326:Fnamed shiftYLnet/minecraft/client/font/TrueTypeFontLoader;shiftY:F
-
excludedCharacters
- Mappings:
Namespace Name Mixin selector official gLdtu;g:Ljava/lang/String;intermediary field_2331Lnet/minecraft/class_396;field_2331:Ljava/lang/String;named excludedCharactersLnet/minecraft/client/font/TrueTypeFontLoader;excludedCharacters:Ljava/lang/String;
-
-
Constructor Details
-
TrueTypeFontLoader
public TrueTypeFontLoader(Identifier filename, float size, float oversample, float shiftX, float shiftY, String excludedCharacters)- Mappings:
Namespace Name Mixin selector official <init>Ldtu;<init>(Lwb;FFFFLjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_396;<init>(Lnet/minecraft/class_2960;FFFFLjava/lang/String;)Vnamed <init>Lnet/minecraft/client/font/TrueTypeFontLoader;<init>(Lnet/minecraft/util/Identifier;FFFFLjava/lang/String;)V
-
-
Method Details
-
fromJson
- Mappings:
Namespace Name Mixin selector official aLdtu;a(Lcom/google/gson/JsonObject;)Ldtr;intermediary method_2059Lnet/minecraft/class_396;method_2059(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_389;named fromJsonLnet/minecraft/client/font/TrueTypeFontLoader;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/font/FontLoader;
-
load
- Specified by:
loadin interfaceFontLoader- Mappings:
Namespace Name Mixin selector official aLdtr;a(Lacx;)Ldkg;intermediary method_2039Lnet/minecraft/class_389;method_2039(Lnet/minecraft/class_3300;)Lnet/minecraft/class_390;named loadLnet/minecraft/client/font/FontLoader;load(Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/client/font/Font;
-