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$FontKey
intermediary net/minecraft/class_378$class_8534
official fkj$a
named fontId
intermediary comp_1491
official a
named pack
intermediary comp_1492
official b
named index
intermediary comp_1493
official c
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fontId()
Returns the value of thefontId
record component.final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.pack()
Returns the value of thepack
record 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 thefontId
record component.- Returns:
- the value of the
fontId
record component
-
pack
Returns the value of thepack
record component.- Returns:
- the value of the
pack
record component
-
index
public int index()Returns the value of theindex
record component.- Returns:
- the value of the
index
record component
-