Package net.minecraft.client.font
Record Class FontManager.FontKey
java.lang.Object
java.lang.Record
net.minecraft.client.font.FontManager.FontKey
- Record Components:
fontId-pack-index-
- Enclosing class:
FontManager
@Environment(CLIENT)
private static record FontManager.FontKey(Identifier fontId, String pack, int index)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/font/FontManager$FontKeyintermediary net/minecraft/class_378$class_8534official flb$anamed fontIdintermediary comp_1491official anamed packintermediary comp_1492official bnamed indexintermediary comp_1493official c
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fontId()Returns the value of thefontIdrecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.pack()Returns the value of thepackrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
FontKey
FontKey(Identifier identifier, String string, int int2)
-
-
Method Details
-
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 '=='. -
fontId
Returns the value of thefontIdrecord component.- Returns:
- the value of the
fontIdrecord component
-
pack
Returns the value of thepackrecord component.- Returns:
- the value of the
packrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-