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 named net/minecraft/client/font/UnihexFont$UnicodeTextureGlyphintermediary net/minecraft/class_391$class_393official fls$dnamed contentsintermediary comp_1508official anamed leftintermediary comp_1509official bnamed rightintermediary comp_1510official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.Glyph
Glyph.EmptyGlyph -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake(Function<RenderableGlyph, GlyphRenderer> glyphRendererGetter) contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.floatfloatfloatfinal inthashCode()Returns a hash code value for this object.intleft()Returns the value of theleftrecord component.intright()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()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
-
Constructor Details
-
UnicodeTextureGlyph
UnicodeTextureGlyph(UnihexFont.BitmapGlyph bitmapGlyph, int int2, int int3)
-
-
Method Details
-
width
public int width()- Mappings:
Namespace Name Mixin selector named widthLnet/minecraft/client/font/UnihexFont$UnicodeTextureGlyph;width()Iintermediary method_51675Lnet/minecraft/class_391$class_393;method_51675()Iofficial cLfls$d;c()I
-
getAdvance
public float getAdvance()- Specified by:
getAdvancein interfaceGlyph
-
getShadowOffset
public float getShadowOffset()- Specified by:
getShadowOffsetin interfaceGlyph- Mappings:
Namespace Name Mixin selector named getShadowOffsetLnet/minecraft/client/font/Glyph;getShadowOffset()Fintermediary method_16800Lnet/minecraft/class_379;method_16800()Fofficial bLezl;b()F
-
getBoldOffset
public float getBoldOffset()- Specified by:
getBoldOffsetin interfaceGlyph- Mappings:
Namespace Name Mixin selector named getBoldOffsetLnet/minecraft/client/font/Glyph;getBoldOffset()Fintermediary method_16799Lnet/minecraft/class_379;method_16799()Fofficial aLezl;a()F
-
bake
- Specified by:
bakein interfaceGlyph- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/font/Glyph;bake(Ljava/util/function/Function;)Lnet/minecraft/client/font/GlyphRenderer;intermediary bakeLnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;official bakeLezl;bake(Ljava/util/function/Function;)Lflh;
-
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 thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public int right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-