Paper/patches/api/0500-Expanded-Art-API.patch
2024-11-28 13:51:48 -08:00

41 lines
1.2 KiB
Diff

From 0000000000000000000000000000000000000000 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
diff --git a/src/main/java/org/bukkit/Art.java b/src/main/java/org/bukkit/Art.java
index 47eaec38253136f8335dc40519ff25b81c4006d9..5d3fb60a212ee5609d5edc1d8030310521d8343e 100644
--- a/src/main/java/org/bukkit/Art.java
+++ b/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
*