Package net.minecraft.client.font
Record Class BitmapFont.Loader
java.lang.Object
java.lang.Record
net.minecraft.client.font.BitmapFont.Loader
- Record Components:
- file-
- height-
- ascent-
- codepointGrid-
- All Implemented Interfaces:
- FontLoader
- Enclosing class:
- BitmapFont
@Environment(CLIENT)
public static record BitmapFont.Loader(Identifier file, int height, int ascent, int[][] codepointGrid)
extends Record
implements FontLoader
- Mappings:
- Namespace - Name - official - erw$a- intermediary - net/minecraft/class_386$class_387- named - net/minecraft/client/font/BitmapFont$Loader- official - c- intermediary - comp_1519- named - file- official - d- intermediary - comp_1520- named - height- official - e- intermediary - comp_1521- named - ascent- official - f- intermediary - comp_1522- named - codepointGrid
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.font.FontLoaderFontLoader.Loadable, FontLoader.Reference
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for theascentrecord component.private static final com.mojang.serialization.Codec<int[][]>static final com.mojang.serialization.MapCodec<BitmapFont.Loader>private final int[][]The field for thecodepointGridrecord component.private final IdentifierThe field for thefilerecord component.private final intThe field for theheightrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintascent()Returns the value of theascentrecord component.com.mojang.datafixers.util.Either<FontLoader.Loadable,FontLoader.Reference> build()int[][]Returns the value of thecodepointGridrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord 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<BitmapFont.Loader>validate(BitmapFont.Loader fontLoader) private static com.mojang.serialization.DataResult<int[][]>validateCodePointGrid(int[][] codePointGrid) 
- 
Field Details- 
fileThe field for thefilerecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
ascentprivate final int ascentThe field for theascentrecord component.
- 
codepointGridprivate final int[][] codepointGridThe field for thecodepointGridrecord component.
- 
CODE_POINT_GRID_CODECprivate static final com.mojang.serialization.Codec<int[][]> CODE_POINT_GRID_CODEC- Mappings:
- Namespace - Name - Mixin selector - official - g- Lerw$a;g:Lcom/mojang/serialization/Codec;- intermediary - field_44800- Lnet/minecraft/class_386$class_387;field_44800:Lcom/mojang/serialization/Codec;- named - CODE_POINT_GRID_CODEC- Lnet/minecraft/client/font/BitmapFont$Loader;CODE_POINT_GRID_CODEC:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Lerw$a;a:Lcom/mojang/serialization/MapCodec;- intermediary - field_44799- Lnet/minecraft/class_386$class_387;field_44799:Lcom/mojang/serialization/MapCodec;- named - CODEC- Lnet/minecraft/client/font/BitmapFont$Loader;CODEC:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
Loader- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lerw$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- 
validateCodePointGridprivate static com.mojang.serialization.DataResult<int[][]> validateCodePointGrid(int[][] codePointGrid) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lerw$a;a([[I)Lcom/mojang/serialization/DataResult;- intermediary - method_51752- Lnet/minecraft/class_386$class_387;method_51752([[I)Lcom/mojang/serialization/DataResult;- named - validateCodePointGrid- Lnet/minecraft/client/font/BitmapFont$Loader;validateCodePointGrid([[I)Lcom/mojang/serialization/DataResult;
 
- 
validateprivate static com.mojang.serialization.DataResult<BitmapFont.Loader> validate(BitmapFont.Loader fontLoader) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lerw$a;a(Lerw$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 - validate- Lnet/minecraft/client/font/BitmapFont$Loader;validate(Lnet/minecraft/client/font/BitmapFont$Loader;)Lcom/mojang/serialization/DataResult;
 
- 
getType- Specified by:
- getTypein interface- FontLoader
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lerx;a()Lery;- 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:
- buildin interface- FontLoader
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lerx;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- Lerw$a;a(Lakx;)Legm;- 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;
 
- 
findCharacterStartXprivate int findCharacterStartX(NativeImage image, int characterWidth, int characterHeight, int charPosX, int charPosY) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lerw$a;a(Lehk;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
 
- 
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 '=='.
- 
fileReturns the value of thefilerecord component.- Returns:
- the value of the filerecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
ascentpublic int ascent()Returns the value of theascentrecord component.- Returns:
- the value of the ascentrecord component
 
- 
codepointGridpublic int[][] codepointGrid()Returns the value of thecodepointGridrecord component.- Returns:
- the value of the codepointGridrecord component
 
 
-