diff options
author | kokiriglade <[email protected]> | 2024-11-23 18:08:13 +0000 |
---|---|---|
committer | kokiriglade <[email protected]> | 2024-11-23 18:08:13 +0000 |
commit | ed6663d2b9abecf8ff477f35ac49f98a2cc4f059 (patch) | |
tree | a7eeecbebd9fd0ae7d9a710955ddfb88fdddb0ff /paper-api | |
parent | b9a4e9a745e947dff635ee7b68fb644db99df591 (diff) | |
download | Paper-ed6663d2b9abecf8ff477f35ac49f98a2cc4f059.tar.gz Paper-ed6663d2b9abecf8ff477f35ac49f98a2cc4f059.zip |
Expanded Art API
Diffstat (limited to 'paper-api')
-rw-r--r-- | paper-api/src/main/java/org/bukkit/Art.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/paper-api/src/main/java/org/bukkit/Art.java b/paper-api/src/main/java/org/bukkit/Art.java index 47eaec3825..5d3fb60a21 100644 --- a/paper-api/src/main/java/org/bukkit/Art.java +++ b/paper-api/src/main/java/org/bukkit/Art.java @@ -117,6 +117,29 @@ public interface Art extends OldEnum<Art>, Keyed { } // Paper end - deprecate getKey + // Paper start - name and author components, assetId key + /** + * Get the painting's title. + * + * @return the title + */ + net.kyori.adventure.text.@Nullable Component title(); + + /** + * Get the painting's author. + * + * @return the author + */ + net.kyori.adventure.text.@Nullable Component author(); + + /** + * Get the painting's asset id + * + * @return the asset id + */ + net.kyori.adventure.key.@NotNull Key assetId(); + // Paper end - name and author components, assetId key + /** * Get a painting by its numeric ID * |