Package net.minecraft.client.font
Record Class UnihexFont.UnicodeTextureGlyph
java.lang.Object
java.lang.Record
net.minecraft.client.font.UnihexFont.UnicodeTextureGlyph
- Record Components:
contents
-left
-right
-
- All Implemented Interfaces:
Glyph
- Enclosing class:
UnihexFont
@Environment(CLIENT)
private static record UnihexFont.UnicodeTextureGlyph(UnihexFont.BitmapGlyph contents, int left, int right)
extends Record
implements Glyph
- Mappings:
Namespace Name official esb$d
intermediary net/minecraft/class_391$class_393
named net/minecraft/client/font/UnihexFont$UnicodeTextureGlyph
official a
intermediary comp_1508
named contents
official b
intermediary comp_1509
named left
official c
intermediary comp_1510
named right
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.Glyph
Glyph.EmptyGlyph
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbake
(Function<RenderableGlyph, GlyphRenderer> glyphRendererGetter) contents()
Returns the value of thecontents
record component.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
left()
Returns the value of theleft
record component.int
right()
Returns the value of theright
record component.final String
toString()
Returns a string representation of this record class.int
width()
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
-
Constructor Details
-
UnicodeTextureGlyph
UnicodeTextureGlyph(UnihexFont.BitmapGlyph bitmapGlyph, int int2, int int3)
-
-
Method Details
-
width
public int width()- Mappings:
Namespace Name Mixin selector official c
Lesb$d;c()I
intermediary method_51675
Lnet/minecraft/class_391$class_393;method_51675()I
named width
Lnet/minecraft/client/font/UnihexFont$UnicodeTextureGlyph;width()I
-
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
Legl;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
Legl;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
Legl;bake(Ljava/util/function/Function;)Lerr;
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 '=='. -
contents
Returns the value of thecontents
record component.- Returns:
- the value of the
contents
record component
-
left
public int left()Returns the value of theleft
record component.- Returns:
- the value of the
left
record component
-
right
public int right()Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-