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 eip$bintermediary net/minecraft/class_391$class_393named net/minecraft/client/font/UnicodeTextureFont$UnicodeTextureGlyphofficial aintermediary comp_611named unpackSkipPixelsofficial bintermediary comp_612named unpackSkipRowsofficial cintermediary comp_613named widthofficial dintermediary comp_614named heightofficial eintermediary comp_615named image
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.Glyph
Glyph.EmptyGlyph -
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionUnicodeTextureGlyph(int int2, int int3, int int4, int int5, NativeImage image) -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.font.Glyph
getAdvance
-
Field Details
-
unpackSkipPixels
private final int unpackSkipPixelsThe field for theunpackSkipPixelsrecord component. -
unpackSkipRows
private final int unpackSkipRowsThe field for theunpackSkipRowsrecord component. -
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
image
The field for theimagerecord component.
-
-
Constructor Details
-
UnicodeTextureGlyph
UnicodeTextureGlyph(int int2, int int3, int int4, int int5, NativeImage image) - Mappings:
Namespace Name Mixin selector official <init>Leip$b;<init>(IIIILdyt;)Vintermediary <init>Lnet/minecraft/class_391$class_393;<init>(IIIILnet/minecraft/class_1011;)Vnamed <init>Lnet/minecraft/client/font/UnicodeTextureFont$UnicodeTextureGlyph;<init>(IIIILnet/minecraft/client/texture/NativeImage;)V
-
-
Method Details
-
getAdvance
public float getAdvance()- Specified by:
getAdvancein interfaceGlyph
-
getShadowOffset
public float getShadowOffset()- Specified by:
getShadowOffsetin interfaceGlyph- Mappings:
Namespace Name Mixin selector official bLdxv;b()Fintermediary method_16800Lnet/minecraft/class_379;method_16800()Fnamed getShadowOffsetLnet/minecraft/client/font/Glyph;getShadowOffset()F
-
getBoldOffset
public float getBoldOffset()- Specified by:
getBoldOffsetin interfaceGlyph- Mappings:
Namespace Name Mixin selector official aLdxv;a()Fintermediary method_16799Lnet/minecraft/class_379;method_16799()Fnamed getBoldOffsetLnet/minecraft/client/font/Glyph;getBoldOffset()F
-
bake
- Specified by:
bakein interfaceGlyph- Mappings:
Namespace Name Mixin selector official bakeLdxv;bake(Ljava/util/function/Function;)Leih;intermediary bakeLnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;named bakeLnet/minecraft/client/font/Glyph;bake(Ljava/util/function/Function;)Lnet/minecraft/client/font/GlyphRenderer;
-
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 '=='. -
unpackSkipPixels
public int unpackSkipPixels()Returns the value of theunpackSkipPixelsrecord component.- Returns:
- the value of the
unpackSkipPixelsrecord component
-
unpackSkipRows
public int unpackSkipRows()Returns the value of theunpackSkipRowsrecord component.- Returns:
- the value of the
unpackSkipRowsrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-