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 giv$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.AbstractGlyphBaker -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake(Glyph.AbstractGlyphBaker baker) contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final 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()
-
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 bLgiv$d;b()I
-
getMetrics
- Specified by:
getMetricsin interfaceGlyph- Mappings:
Namespace Name Mixin selector named getMetricsLnet/minecraft/client/font/Glyph;getMetrics()Lnet/minecraft/client/font/GlyphMetrics;intermediary method_73331Lnet/minecraft/class_11759;method_73331()Lnet/minecraft/class_379;official aLfrm;a()Lfri;
-
bake
- Specified by:
bakein interfaceGlyph- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/font/Glyph;bake(Lnet/minecraft/client/font/Glyph$AbstractGlyphBaker;)Lnet/minecraft/client/font/BakedGlyph;intermediary method_73332Lnet/minecraft/class_11759;method_73332(Lnet/minecraft/class_11759$class_11760;)Lnet/minecraft/class_11768;official aLfrm;a(Lfrm$a;)Lgii;
-
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
-