Package net.kyori.adventure.text
Interface ObjectComponent.Contents
- All Superinterfaces:
net.kyori.examination.Examinable
- All Known Subinterfaces:
ObjectComponent.SpriteContents
- Enclosing interface:
- ObjectComponent
public static interface ObjectComponent.Contents
extends net.kyori.examination.Examinable
An object component contents.
- Since:
- 4.25.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull ObjectComponent.SpriteContentsCreates a sprite contents with the given sprite and the default atlas.static @NotNull ObjectComponent.SpriteContentsCreates a sprite contents with the given atlas and sprite.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Method Details
-
sprite
@Contract(value="_, _ -> new", pure=true) @NotNull static @NotNull ObjectComponent.SpriteContents sprite(@NotNull @NotNull Key atlas, @NotNull @NotNull Key sprite) Creates a sprite contents with the given atlas and sprite.- Parameters:
atlas- the atlassprite- the sprite- Returns:
- a sprite contents
- Since:
- 4.25.0
-
sprite
@Contract(value="_ -> new", pure=true) @NotNull static @NotNull ObjectComponent.SpriteContents sprite(@NotNull @NotNull Key sprite) Creates a sprite contents with the given sprite and the default atlas.- Parameters:
sprite- the sprite- Returns:
- a sprite contents
- Since:
- 4.25.0
-