geforkt von Mirrors/Paper
[ci skip] clarify javadocs for Block#getDrops (#10153)
Dieser Commit ist enthalten in:
Ursprung
7ed69f968c
Commit
a86380bc18
@ -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.
|
||||
+ * <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
|
||||
*/
|
||||
@@ -0,0 +0,0 @@ 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
|
||||
@@ -0,0 +0,0 @@ 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/block/data/BlockData.java
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren