From ed6663d2b9abecf8ff477f35ac49f98a2cc4f059 Mon Sep 17 00:00:00 2001 From: kokiriglade <60290002+celerry@users.noreply.github.com> Date: Sat, 23 Nov 2024 18:08:13 +0000 Subject: [PATCH] Expanded Art API --- paper-api/src/main/java/org/bukkit/Art.java | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) 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, 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 *