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 ers$dintermediary net/minecraft/class_391$class_393named net/minecraft/client/font/UnihexFont$UnicodeTextureGlyphofficial aintermediary comp_1508named contentsofficial bintermediary comp_1509named leftofficial cintermediary comp_1510named right
-
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 official cLers$d;c()Iintermediary method_51675Lnet/minecraft/class_391$class_393;method_51675()Inamed widthLnet/minecraft/client/font/UnihexFont$UnicodeTextureGlyph;width()I
-
getAdvance
public float getAdvance()- Specified by:
getAdvancein interfaceGlyph
-
getShadowOffset
public float getShadowOffset()- Specified by:
getShadowOffsetin interfaceGlyph- Mappings:
Namespace Name Mixin selector official bLegd;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 aLegd;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 bakeLegd;bake(Ljava/util/function/Function;)Leri;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 '=='. -
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
-