Package net.kyori.adventure.text.object
Interface SpriteObjectContents
- All Superinterfaces:
net.kyori.examination.Examinable
,ObjectContents
A sprite contents.
Represents a sprite in an atlas, such as a block texture.
- Since:
- 4.25.0
- Since Minecraft:
- 1.21.9
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Key
The default atlas key for sprites, used by vanilla when the atlas is not specified in a serialized object component. -
Method Summary
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Field Details
-
DEFAULT_ATLAS
The default atlas key for sprites, used by vanilla when the atlas is not specified in a serialized object component.- Since:
- 4.25.0
-
-
Method Details
-
atlas
Gets the atlas key.- Returns:
- the atlas key
- Since:
- 4.25.0
-
sprite
Gets the sprite key.- Returns:
- the sprite key
- Since:
- 4.25.0
-
examinableProperties
@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-