Package net.minecraft.network.chat
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(ResourceLocation atlasId, ResourceLocation spriteId)
extends Record
implements FontDescription
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.chat.FontDescription
FontDescription.AtlasSprite, FontDescription.PlayerSprite, FontDescription.Resource -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationThe field for theatlasIdrecord component.private final ResourceLocationThe field for thespriteIdrecord component.Fields inherited from interface net.minecraft.network.chat.FontDescription
CODEC, DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionAtlasSprite(ResourceLocation atlasId, ResourceLocation 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
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. 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
-