Package net.minecraft.client.gui.font
Record Class FontManager.BuilderId
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.FontManager.BuilderId
- Enclosing class:
- FontManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
The field for thefontId
record component.private final int
The field for theindex
record component.private final String
The field for thepack
record component. -
Constructor Summary
ConstructorDescriptionBuilderId
(ResourceLocation fontId, String pack, int index) Creates an instance of aBuilderId
record class. -
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
-
fontId
The field for thefontId
record component. -
pack
The field for thepack
record component. -
index
private final int indexThe field for theindex
record component.
-
-
Constructor Details
-
BuilderId
BuilderId(ResourceLocation fontId, String pack, int index) Creates an instance of aBuilderId
record class.- Parameters:
fontId
- the value for thefontId
record componentpack
- the value for thepack
record componentindex
- the value for theindex
record component
-
-
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
-