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 official eqx$a
intermediary net/minecraft/class_378$class_8534
named net/minecraft/client/font/FontManager$FontKey
official a
intermediary comp_1491
named fontId
official b
intermediary comp_1492
named pack
official c
intermediary comp_1493
named index
-
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
-