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$a
intermediary net/minecraft/class_386$class_387
named net/minecraft/client/font/BitmapFont$Loader
official c
intermediary comp_1519
named filename
official d
intermediary comp_1520
named height
official e
intermediary comp_1521
named ascent
official f
intermediary comp_1522
named 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 int
The field for theascent
record component.private final int[][]
The field for thechars
record component.static final com.mojang.serialization.MapCodec<BitmapFont.Loader>
private static final com.mojang.serialization.Codec<int[][]>
private final Identifier
The field for thefilename
record component.private final int
The field for theheight
record component.Fields inherited from interface net.minecraft.client.font.FontLoader
field_44801
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
ascent()
Returns the value of theascent
record component.com.mojang.datafixers.util.Either<FontLoader.Loadable,
FontLoader.Reference> build()
int[][]
chars()
Returns the value of thechars
record component.final boolean
Indicates whether some other object is "equal to" this one.filename()
Returns the value of thefilename
record component.private int
findCharacterStartX
(NativeImage image, int characterWidth, int characterHeight, int charPosX, int charPosY) final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.private Font
load
(ResourceManager resourceManager) private static com.mojang.serialization.DataResult<BitmapFont.Loader>
method_51749
(BitmapFont.Loader loader) private static com.mojang.serialization.DataResult<int[][]>
method_51752
(int[][] int2) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
filename
The field for thefilename
record component. -
height
private final int heightThe field for theheight
record component. -
ascent
private final int ascentThe field for theascent
record component. -
chars
private final int[][] charsThe field for thechars
record component. -
field_44800
private static final com.mojang.serialization.Codec<int[][]> field_44800- Mappings:
Namespace Name Mixin selector official g
Lerh$a;g:Lcom/mojang/serialization/Codec;
intermediary field_44800
Lnet/minecraft/class_386$class_387;field_44800:Lcom/mojang/serialization/Codec;
named field_44800
Lnet/minecraft/client/font/BitmapFont$Loader;field_44800:Lcom/mojang/serialization/Codec;
-
field_44799
- Mappings:
Namespace Name Mixin selector official a
Lerh$a;a:Lcom/mojang/serialization/MapCodec;
intermediary field_44799
Lnet/minecraft/class_386$class_387;field_44799:Lcom/mojang/serialization/MapCodec;
named field_44799
Lnet/minecraft/client/font/BitmapFont$Loader;field_44799:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Loader
- Mappings:
Namespace Name Mixin selector official <init>
Lerh$a;<init>(Lacq;II[[I)V
intermediary <init>
Lnet/minecraft/class_386$class_387;<init>(Lnet/minecraft/class_2960;II[[I)V
named <init>
Lnet/minecraft/client/font/BitmapFont$Loader;<init>(Lnet/minecraft/util/Identifier;II[[I)V
-
-
Method Details
-
method_51752
private static com.mojang.serialization.DataResult<int[][]> method_51752(int[][] int2) - Mappings:
Namespace Name Mixin selector official a
Lerh$a;a([[I)Lcom/mojang/serialization/DataResult;
intermediary method_51752
Lnet/minecraft/class_386$class_387;method_51752([[I)Lcom/mojang/serialization/DataResult;
named method_51752
Lnet/minecraft/client/font/BitmapFont$Loader;method_51752([[I)Lcom/mojang/serialization/DataResult;
-
method_51749
private static com.mojang.serialization.DataResult<BitmapFont.Loader> method_51749(BitmapFont.Loader loader) - Mappings:
Namespace Name Mixin selector official a
Lerh$a;a(Lerh$a;)Lcom/mojang/serialization/DataResult;
intermediary method_51749
Lnet/minecraft/class_386$class_387;method_51749(Lnet/minecraft/class_386$class_387;)Lcom/mojang/serialization/DataResult;
named method_51749
Lnet/minecraft/client/font/BitmapFont$Loader;method_51749(Lnet/minecraft/client/font/BitmapFont$Loader;)Lcom/mojang/serialization/DataResult;
-
method_51731
- Specified by:
method_51731
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 method_51731
Lnet/minecraft/client/font/FontLoader;method_51731()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
Lerh$a;a(Lakv;)Lefy;
intermediary method_2039
Lnet/minecraft/class_386$class_387;method_2039(Lnet/minecraft/class_3300;)Lnet/minecraft/class_390;
named load
Lnet/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 a
Lerh$a;a(Legw;IIII)I
intermediary method_2038
Lnet/minecraft/class_386$class_387;method_2038(Lnet/minecraft/class_1011;IIII)I
named findCharacterStartX
Lnet/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 thefilename
record component.- Returns:
- the value of the
filename
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
ascent
public int ascent()Returns the value of theascent
record component.- Returns:
- the value of the
ascent
record component
-
chars
public int[][] chars()Returns the value of thechars
record component.- Returns:
- the value of the
chars
record component
-