Record Class FontDescription.AtlasSprite
java.lang.Object
java.lang.Record
net.minecraft.network.chat.FontDescription.AtlasSprite
- All Implemented Interfaces:
FontDescription
- Enclosing interface:
FontDescription
public static record FontDescription.AtlasSprite(Identifier atlasId, Identifier spriteId)
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 IdentifierThe field for theatlasIdrecord component.private final IdentifierThe field for thespriteIdrecord component.Fields inherited from interface FontDescription
CODEC, DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionAtlasSprite(Identifier atlasId, Identifier spriteId) Creates an instance of aAtlasSpriterecord class. -
Method Summary
Modifier and TypeMethodDescriptionatlasId()Returns the value of theatlasIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.spriteId()Returns the value of thespriteIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
atlasId
The field for theatlasIdrecord component. -
spriteId
The field for thespriteIdrecord component.
-
-
Constructor Details
-
AtlasSprite
Creates an instance of aAtlasSpriterecord class.- Parameters:
atlasId- the value for theatlasIdrecord componentspriteId- the value for thespriteIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
atlasId
Returns the value of theatlasIdrecord component.- Returns:
- the value of the
atlasIdrecord component
-
spriteId
Returns the value of thespriteIdrecord component.- Returns:
- the value of the
spriteIdrecord component
-