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 eqp$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 Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.Glyph
Glyph.EmptyGlyph
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for theheight
record component.private final NativeImage
The field for theimage
record component.private final int
The field for theunpackSkipPixels
record component.private final int
The field for theunpackSkipRows
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorDescriptionUnicodeTextureGlyph
(int int2, int int3, int int4, int int5, NativeImage image) -
Method Summary
Modifier and TypeMethodDescriptionbake
(Function<RenderableGlyph, GlyphRenderer> glyphRendererGetter) final boolean
Indicates whether some other object is "equal to" this one.float
float
float
final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.image()
Returns the value of theimage
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theunpackSkipPixels
record component.int
Returns the value of theunpackSkipRows
record component.int
width()
Returns the value of thewidth
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.font.Glyph
getAdvance
-
Field Details
-
unpackSkipPixels
private final int unpackSkipPixelsThe field for theunpackSkipPixels
record component. -
unpackSkipRows
private final int unpackSkipRowsThe field for theunpackSkipRows
record component. -
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
image
The field for theimage
record component.
-
-
Constructor Details
-
UnicodeTextureGlyph
UnicodeTextureGlyph(int int2, int int3, int int4, int int5, NativeImage image) - Mappings:
Namespace Name Mixin selector official <init>
Leqp$b;<init>(IIIILegf;)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
-
getAdvance
public float getAdvance()- Specified by:
getAdvance
in interfaceGlyph
-
getShadowOffset
public float getShadowOffset()- Specified by:
getShadowOffset
in interfaceGlyph
- Mappings:
Namespace Name Mixin selector official b
Lefh;b()F
intermediary method_16800
Lnet/minecraft/class_379;method_16800()F
named getShadowOffset
Lnet/minecraft/client/font/Glyph;getShadowOffset()F
-
getBoldOffset
public float getBoldOffset()- Specified by:
getBoldOffset
in interfaceGlyph
- Mappings:
Namespace Name Mixin selector official a
Lefh;a()F
intermediary method_16799
Lnet/minecraft/class_379;method_16799()F
named getBoldOffset
Lnet/minecraft/client/font/Glyph;getBoldOffset()F
-
bake
- Specified by:
bake
in interfaceGlyph
- Mappings:
Namespace Name Mixin selector official bake
Lefh;bake(Ljava/util/function/Function;)Leqh;
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;
-
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 theunpackSkipPixels
record component.- Returns:
- the value of the
unpackSkipPixels
record component
-
unpackSkipRows
public int unpackSkipRows()Returns the value of theunpackSkipRows
record component.- Returns:
- the value of the
unpackSkipRows
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
image
Returns the value of theimage
record component.- Returns:
- the value of the
image
record component
-