[ci skip] clarify javadocs for Block#getDrops (#10153)
This commit is contained in:
parent
7f7d05a21c
commit
ed130f1170
5 changed files with 46 additions and 6 deletions
|
@ -203,7 +203,7 @@ index f9bd74f9ce6bd6650726e5a993f9b6e292cdc74d..f4c37ce1fe7aac3dde8485ee51fc8888
|
|||
+// Paper end
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java
|
||||
index f8e12868f2e629cdf4784f0157fdb2f8e7b01f99..870ad6cd930653e6248abcc0fce94ffafbe9ebde 100644
|
||||
index f8e12868f2e629cdf4784f0157fdb2f8e7b01f99..bda4ab21b3ac2acbe328c0c6887c33283399971e 100644
|
||||
--- a/src/main/java/org/bukkit/block/Block.java
|
||||
+++ b/src/main/java/org/bukkit/block/Block.java
|
||||
@@ -357,7 +357,7 @@ public interface Block extends Metadatable, Translatable {
|
||||
|
@ -215,6 +215,46 @@ index f8e12868f2e629cdf4784f0157fdb2f8e7b01f99..870ad6cd930653e6248abcc0fce94ffa
|
|||
*
|
||||
* @return Temperature of this block
|
||||
*/
|
||||
@@ -405,7 +405,10 @@ 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.
|
||||
+ * <p>
|
||||
+ * 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
|
||||
*/
|
||||
@@ -413,8 +416,11 @@ public interface Block extends Metadatable, Translatable {
|
||||
Collection<ItemStack> 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.
|
||||
+ * <p>
|
||||
+ * 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
|
||||
@@ -423,8 +429,11 @@ public interface Block extends Metadatable, Translatable {
|
||||
Collection<ItemStack> 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.
|
||||
+ * <p>
|
||||
+ * 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 29fd06cb800f9b7cc91a120ccbe2980422ed9653..cd3b3e05cc825cfedec07f9a2a1e0b7b2a8866d6 100644
|
||||
--- a/src/main/java/org/bukkit/block/data/BlockData.java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue