Package net.minecraft.text
Record Class StyleSpriteSource.Sprite
java.lang.Object
java.lang.Record
net.minecraft.text.StyleSpriteSource.Sprite
- Record Components:
atlasId-spriteId-
- All Implemented Interfaces:
StyleSpriteSource
- Enclosing interface:
StyleSpriteSource
public static record StyleSpriteSource.Sprite(Identifier atlasId, Identifier spriteId)
extends Record
implements StyleSpriteSource
- Mappings:
Namespace Name named net/minecraft/text/StyleSpriteSource$Spriteintermediary net/minecraft/class_11719$class_11720official yc$anamed atlasIdintermediary comp_4588official cnamed spriteIdintermediary comp_4589official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.StyleSpriteSource
StyleSpriteSource.Font, StyleSpriteSource.Player, StyleSpriteSource.Sprite -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theatlasIdrecord component.private final IdentifierThe field for thespriteIdrecord component.Fields inherited from interface net.minecraft.text.StyleSpriteSource
DEFAULT, FONT_CODEC -
Constructor Summary
Constructors -
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
-
Constructor Details
-
Sprite
-
-
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
-