From 15288309a2b8629d1f287878533e7e2a770cac24 Mon Sep 17 00:00:00 2001 From: FireInstall <29309865+FireInstall@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:57:17 +0100 Subject: [PATCH] Expose LootTable of DecoratedPot (#10023) --- .../Expose-LootTable-of-DecoratedPot.patch | 19 +++++++ .../Expose-LootTable-of-DecoratedPot.patch | 50 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 patches/api/Expose-LootTable-of-DecoratedPot.patch create mode 100644 patches/server/Expose-LootTable-of-DecoratedPot.patch diff --git a/patches/api/Expose-LootTable-of-DecoratedPot.patch b/patches/api/Expose-LootTable-of-DecoratedPot.patch new file mode 100644 index 0000000000..236fa6845c --- /dev/null +++ b/patches/api/Expose-LootTable-of-DecoratedPot.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: FireInstall +Date: Sat, 20 Jan 2024 16:20:07 +0100 +Subject: [PATCH] Expose LootTable of DecoratedPot + + +diff --git a/src/main/java/org/bukkit/block/DecoratedPot.java b/src/main/java/org/bukkit/block/DecoratedPot.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/block/DecoratedPot.java ++++ b/src/main/java/org/bukkit/block/DecoratedPot.java +@@ -0,0 +0,0 @@ import org.jetbrains.annotations.Nullable; + /** + * Represents a captured state of a decorated pot. + */ +-public interface DecoratedPot extends TileState, BlockInventoryHolder { ++public interface DecoratedPot extends TileState, BlockInventoryHolder , org.bukkit.loot.Lootable { // Paper - expose loot table + + /** + * Set the sherd on the provided side. diff --git a/patches/server/Expose-LootTable-of-DecoratedPot.patch b/patches/server/Expose-LootTable-of-DecoratedPot.patch new file mode 100644 index 0000000000..689d1abf09 --- /dev/null +++ b/patches/server/Expose-LootTable-of-DecoratedPot.patch @@ -0,0 +1,50 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: FireInstall +Date: Sat, 20 Jan 2024 16:20:06 +0100 +Subject: [PATCH] Expose LootTable of DecoratedPot + + +diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java b/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java ++++ b/src/main/java/org/bukkit/craftbukkit/block/CraftDecoratedPot.java +@@ -0,0 +0,0 @@ public class CraftDecoratedPot extends CraftBlockEntityState