mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-31 12:23:51 -07:00
Painting variant registry modification API (#11648)
This commit is contained in:
40
patches/api/Expanded-Art-API.patch
Normal file
40
patches/api/Expanded-Art-API.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/Art.java
|
||||
+++ b/src/main/java/org/bukkit/Art.java
|
||||
@@ -0,0 +0,0 @@ public interface Art extends OldEnum<Art>, Keyed {
|
||||
@NotNull NamespacedKey getKey();
|
||||
// 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
|
||||
*
|
Reference in New Issue
Block a user