Record Class FontDescription.PlayerSprite
java.lang.Object
java.lang.Record
net.minecraft.network.chat.FontDescription.PlayerSprite
- All Implemented Interfaces:
FontDescription
- Enclosing interface:
FontDescription
public static record FontDescription.PlayerSprite(ResolvableProfile profile, boolean hat)
extends Record
implements FontDescription
-
Nested Class Summary
Nested classes/interfaces inherited from interface FontDescription
FontDescription.AtlasSprite, FontDescription.PlayerSprite, FontDescription.Resource -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thehatrecord component.private final ResolvableProfileThe field for theprofilerecord component.Fields inherited from interface FontDescription
CODEC, DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSprite(ResolvableProfile profile, boolean hat) Creates an instance of aPlayerSpriterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhat()Returns the value of thehatrecord component.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
profile
The field for theprofilerecord component. -
hat
private final boolean hatThe field for thehatrecord component.
-
-
Constructor Details
-
PlayerSprite
Creates an instance of aPlayerSpriterecord class.- Parameters:
profile- the value for theprofilerecord componenthat- the value for thehatrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
hat
public boolean hat()Returns the value of thehatrecord component.- Returns:
- the value of the
hatrecord component
-