Package net.minecraft.client.font
Record Class BitmapFont.Loader
java.lang.Object
java.lang.Record
net.minecraft.client.font.BitmapFont.Loader
- Record Components:
filename-height-ascent-chars-
- All Implemented Interfaces:
FontLoader
- Enclosing class:
BitmapFont
@Environment(CLIENT)
public static record BitmapFont.Loader(Identifier filename, int height, int ascent, int[][] chars)
extends Record
implements FontLoader
- Mappings:
Namespace Name official erh$aintermediary net/minecraft/class_386$class_387named net/minecraft/client/font/BitmapFont$Loaderofficial cintermediary comp_1519named filenameofficial dintermediary comp_1520named heightofficial eintermediary comp_1521named ascentofficial fintermediary comp_1522named chars
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.FontLoader
FontLoader.Loadable, FontLoader.Reference -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theascentrecord component.private final int[][]The field for thecharsrecord component.static final com.mojang.serialization.MapCodec<BitmapFont.Loader>private final IdentifierThe field for thefilenamerecord component.private final intThe field for theheightrecord component.private static final com.mojang.serialization.Codec<int[][]> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintascent()Returns the value of theascentrecord component.com.mojang.datafixers.util.Either<FontLoader.Loadable,FontLoader.Reference> build()int[][]chars()Returns the value of thecharsrecord component.final booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.private intfindCharacterStartX(NativeImage image, int characterWidth, int characterHeight, int charPosX, int charPosY) getType()final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.private Fontload(ResourceManager resourceManager) final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<int[][]>validate(int[][] codePointGrid) private static com.mojang.serialization.DataResult<BitmapFont.Loader>validate(BitmapFont.Loader loader)
-
Field Details
-
filename
The field for thefilenamerecord component. -
height
private final int heightThe field for theheightrecord component. -
ascent
private final int ascentThe field for theascentrecord component. -
chars
private final int[][] charsThe field for thecharsrecord component. -
STRINGS_CODEPOINT_GRID_CODEC
private static final com.mojang.serialization.Codec<int[][]> STRINGS_CODEPOINT_GRID_CODEC- Mappings:
Namespace Name Mixin selector official gLerh$a;g:Lcom/mojang/serialization/Codec;intermediary field_44800Lnet/minecraft/class_386$class_387;field_44800:Lcom/mojang/serialization/Codec;named STRINGS_CODEPOINT_GRID_CODECLnet/minecraft/client/font/BitmapFont$Loader;STRINGS_CODEPOINT_GRID_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLerh$a;a:Lcom/mojang/serialization/MapCodec;intermediary field_44799Lnet/minecraft/class_386$class_387;field_44799:Lcom/mojang/serialization/MapCodec;named CODECLnet/minecraft/client/font/BitmapFont$Loader;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Loader
- Mappings:
Namespace Name Mixin selector official <init>Lerh$a;<init>(Lacq;II[[I)Vintermediary <init>Lnet/minecraft/class_386$class_387;<init>(Lnet/minecraft/class_2960;II[[I)Vnamed <init>Lnet/minecraft/client/font/BitmapFont$Loader;<init>(Lnet/minecraft/util/Identifier;II[[I)V
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<int[][]> validate(int[][] codePointGrid) - Mappings:
Namespace Name Mixin selector official aLerh$a;a([[I)Lcom/mojang/serialization/DataResult;intermediary method_51752Lnet/minecraft/class_386$class_387;method_51752([[I)Lcom/mojang/serialization/DataResult;named validateLnet/minecraft/client/font/BitmapFont$Loader;validate([[I)Lcom/mojang/serialization/DataResult;
-
validate
private static com.mojang.serialization.DataResult<BitmapFont.Loader> validate(BitmapFont.Loader loader) - Mappings:
Namespace Name Mixin selector official aLerh$a;a(Lerh$a;)Lcom/mojang/serialization/DataResult;intermediary method_51749Lnet/minecraft/class_386$class_387;method_51749(Lnet/minecraft/class_386$class_387;)Lcom/mojang/serialization/DataResult;named validateLnet/minecraft/client/font/BitmapFont$Loader;validate(Lnet/minecraft/client/font/BitmapFont$Loader;)Lcom/mojang/serialization/DataResult;
-
getType
- Specified by:
getTypein interfaceFontLoader- Mappings:
Namespace Name Mixin selector official aLeri;a()Lerj;intermediary method_51731Lnet/minecraft/class_389;method_51731()Lnet/minecraft/class_394;named getTypeLnet/minecraft/client/font/FontLoader;getType()Lnet/minecraft/client/font/FontType;
-
build
- Specified by:
buildin interfaceFontLoader- Mappings:
Namespace Name Mixin selector official bLeri;b()Lcom/mojang/datafixers/util/Either;intermediary method_51734Lnet/minecraft/class_389;method_51734()Lcom/mojang/datafixers/util/Either;named buildLnet/minecraft/client/font/FontLoader;build()Lcom/mojang/datafixers/util/Either;
-
load
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLerh$a;a(Lakv;)Lefy;intermediary method_2039Lnet/minecraft/class_386$class_387;method_2039(Lnet/minecraft/class_3300;)Lnet/minecraft/class_390;named loadLnet/minecraft/client/font/BitmapFont$Loader;load(Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/client/font/Font;
-
findCharacterStartX
private int findCharacterStartX(NativeImage image, int characterWidth, int characterHeight, int charPosX, int charPosY) - Mappings:
Namespace Name Mixin selector official aLerh$a;a(Legw;IIII)Iintermediary method_2038Lnet/minecraft/class_386$class_387;method_2038(Lnet/minecraft/class_1011;IIII)Inamed findCharacterStartXLnet/minecraft/client/font/BitmapFont$Loader;findCharacterStartX(Lnet/minecraft/client/texture/NativeImage;IIII)I
-
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 '=='. -
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
ascent
public int ascent()Returns the value of theascentrecord component.- Returns:
- the value of the
ascentrecord component
-
chars
public int[][] chars()Returns the value of thecharsrecord component.- Returns:
- the value of the
charsrecord component
-