Package net.minecraft.client.font
Record Class UnicodeTextureFont.UnicodeTextureGlyph
java.lang.Object
java.lang.Record
net.minecraft.client.font.UnicodeTextureFont.UnicodeTextureGlyph
- Record Components:
- unpackSkipPixels-
- unpackSkipRows-
- width-
- height-
- image-
- All Implemented Interfaces:
- Glyph
- Enclosing class:
- UnicodeTextureFont
@Environment(CLIENT)
private static record UnicodeTextureFont.UnicodeTextureGlyph(int unpackSkipPixels, int unpackSkipRows, int width, int height, NativeImage image)
extends Record
implements Glyph
- Mappings:
- Namespace - Name - official - ejq$b- intermediary - net/minecraft/class_391$class_393- named - net/minecraft/client/font/UnicodeTextureFont$UnicodeTextureGlyph- official - a- intermediary - comp_611- named - unpackSkipPixels- official - b- intermediary - comp_612- named - unpackSkipRows- official - c- intermediary - comp_613- named - width- official - d- intermediary - comp_614- named - height- official - e- intermediary - comp_615- named - image
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.font.GlyphGlyph.EmptyGlyph
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for theheightrecord component.private final NativeImageThe field for theimagerecord component.private final intThe field for theunpackSkipPixelsrecord component.private final intThe field for theunpackSkipRowsrecord component.private final intThe field for thewidthrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionUnicodeTextureGlyph(int int2, int int3, int int4, int int5, NativeImage image) 
- 
Method SummaryModifier and TypeMethodDescriptionbake(Function<RenderableGlyph, GlyphRenderer> glyphRendererGetter) final booleanIndicates whether some other object is "equal to" this one.floatfloatfloatfinal inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.image()Returns the value of theimagerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunpackSkipPixelsrecord component.intReturns the value of theunpackSkipRowsrecord component.intwidth()Returns the value of thewidthrecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.font.GlyphgetAdvance
- 
Field Details- 
unpackSkipPixelsprivate final int unpackSkipPixelsThe field for theunpackSkipPixelsrecord component.
- 
unpackSkipRowsprivate final int unpackSkipRowsThe field for theunpackSkipRowsrecord component.
- 
widthprivate final int widthThe field for thewidthrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
imageThe field for theimagerecord component.
 
- 
- 
Constructor Details- 
UnicodeTextureGlyphUnicodeTextureGlyph(int int2, int int3, int int4, int int5, NativeImage image) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lejq$b;<init>(IIIILdzq;)V- intermediary - <init>- Lnet/minecraft/class_391$class_393;<init>(IIIILnet/minecraft/class_1011;)V- named - <init>- Lnet/minecraft/client/font/UnicodeTextureFont$UnicodeTextureGlyph;<init>(IIIILnet/minecraft/client/texture/NativeImage;)V
 
 
- 
- 
Method Details- 
getAdvancepublic float getAdvance()- Specified by:
- getAdvancein interface- Glyph
 
- 
getShadowOffsetpublic float getShadowOffset()- Specified by:
- getShadowOffsetin interface- Glyph
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldys;b()F- intermediary - method_16800- Lnet/minecraft/class_379;method_16800()F- named - getShadowOffset- Lnet/minecraft/client/font/Glyph;getShadowOffset()F
 
- 
getBoldOffsetpublic float getBoldOffset()- Specified by:
- getBoldOffsetin interface- Glyph
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldys;a()F- intermediary - method_16799- Lnet/minecraft/class_379;method_16799()F- named - getBoldOffset- Lnet/minecraft/client/font/Glyph;getBoldOffset()F
 
- 
bake- Specified by:
- bakein interface- Glyph
- Mappings:
- Namespace - Name - Mixin selector - official - bake- Ldys;bake(Ljava/util/function/Function;)Leji;- intermediary - bake- Lnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;- named - bake- Lnet/minecraft/client/font/Glyph;bake(Ljava/util/function/Function;)Lnet/minecraft/client/font/GlyphRenderer;
 
- 
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 '=='.
- 
unpackSkipPixelspublic int unpackSkipPixels()Returns the value of theunpackSkipPixelsrecord component.- Returns:
- the value of the unpackSkipPixelsrecord component
 
- 
unpackSkipRowspublic int unpackSkipRows()Returns the value of theunpackSkipRowsrecord component.- Returns:
- the value of the unpackSkipRowsrecord component
 
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
imageReturns the value of theimagerecord component.- Returns:
- the value of the imagerecord component
 
 
-