Interface PaintingVariantRegistryEntry
- All Known Subinterfaces:
PaintingVariantRegistryEntry.Builder
@NonExtendable
public interface PaintingVariantRegistryEntry
A data-centric version-specific registry entry for the
Art type.- Since:
- 1.21.3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA mutable builder for thePaintingVariantRegistryEntryplugins may change in applicable registry events. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.key.KeyassetId()Provides the asset id of the painting, which is the location of the sprite to use.@Nullable net.kyori.adventure.text.Componentauthor()Provides the author of the painting visible in the creative inventory.@Range(from=1L,to=16L) intheight()Provides the height of this painting in blocks.@Nullable net.kyori.adventure.text.Componenttitle()Provides the title of the painting visible in the creative inventory.@Range(from=1L,to=16L) intwidth()Provides the width of this painting in blocks.
-
Method Details
-
width
@Range(from=1L,to=16L) int width()Provides the width of this painting in blocks.- Returns:
- the width
- Since:
- 1.21.3
- See Also:
-
height
@Range(from=1L,to=16L) int height()Provides the height of this painting in blocks.- Returns:
- the height
- Since:
- 1.21.3
- See Also:
-
title
@Nullable net.kyori.adventure.text.Component title()Provides the title of the painting visible in the creative inventory.- Returns:
- the title
- Since:
- 1.21.3
- See Also:
-
author
@Nullable net.kyori.adventure.text.Component author()Provides the author of the painting visible in the creative inventory.- Returns:
- the author
- Since:
- 1.21.3
- See Also:
-
assetId
net.kyori.adventure.key.Key assetId()Provides the asset id of the painting, which is the location of the sprite to use.- Returns:
- the asset id
- Since:
- 1.21.3
- See Also:
-