Interface SpriteObjectContents

All Superinterfaces:
net.kyori.examination.Examinable, ObjectContents

@NonExtendable public interface SpriteObjectContents extends 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

    Fields
    Modifier and Type
    Field
    Description
    static final Key
    The default atlas key for sprites, used by vanilla when the atlas is not specified in a serialized object component.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Key
    Gets the atlas key.
    default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>
     
    @NotNull Key
    Gets the sprite key.

    Methods inherited from interface net.kyori.examination.Examinable

    examinableName, examine
  • Field Details

    • DEFAULT_ATLAS

      static final Key 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

      @NotNull @NotNull Key atlas()
      Gets the atlas key.
      Returns:
      the atlas key
      Since:
      4.25.0
    • sprite

      @NotNull @NotNull Key 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 interface net.kyori.examination.Examinable