From a86380bc181f0236d1c479aed978f5f125576c13 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sat, 27 Jan 2024 09:35:09 -0800 Subject: [PATCH] [ci skip] clarify javadocs for Block#getDrops (#10153) --- patches/api/Fix-upstream-javadocs.patch | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/patches/api/Fix-upstream-javadocs.patch b/patches/api/Fix-upstream-javadocs.patch index 94eb0fb6d4..cd79fb8e47 100644 --- a/patches/api/Fix-upstream-javadocs.patch +++ b/patches/api/Fix-upstream-javadocs.patch @@ -215,6 +215,46 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 * * @return Temperature of this block */ +@@ -0,0 +0,0 @@ public interface Block extends Metadatable, Translatable { + boolean applyBoneMeal(@NotNull BlockFace face); + + /** +- * Returns a list of items which would drop by destroying this block ++ * Returns a list of items which could drop by destroying this block. ++ *

++ * The items are not guaranteed to be consistent across multiple calls to this ++ * method as this just uses the block type's loot table. + * + * @return a list of dropped items for this type of block + */ +@@ -0,0 +0,0 @@ public interface Block extends Metadatable, Translatable { + Collection getDrops(); + + /** +- * Returns a list of items which would drop by destroying this block with +- * a specific tool ++ * Returns a list of items which could drop by destroying this block with ++ * a specific tool. ++ *

++ * The items are not guaranteed to be consistent across multiple calls to this ++ * method as this just uses the block type's loot table. + * + * @param tool The tool or item in hand used for digging + * @return a list of dropped items for this type of block +@@ -0,0 +0,0 @@ public interface Block extends Metadatable, Translatable { + Collection getDrops(@Nullable ItemStack tool); + + /** +- * Returns a list of items which would drop by the entity destroying this +- * block with a specific tool ++ * Returns a list of items which could drop by the entity destroying this ++ * block with a specific tool. ++ *

++ * The items are not guaranteed to be consistent across multiple calls to this ++ * method as this just uses the block type's loot table. + * + * @param tool The tool or item in hand used for digging + * @param entity the entity destroying the block diff --git a/src/main/java/org/bukkit/block/data/BlockData.java b/src/main/java/org/bukkit/block/data/BlockData.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/block/data/BlockData.java