Fix/improve destroy speed API (#9645)
further improvements could be a method that takes in an entity to account for effects
This commit is contained in:
parent
82aefb5454
commit
2a49ab43f6
6 changed files with 89 additions and 39 deletions
|
@ -35,9 +35,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
--- a/src/main/java/org/bukkit/block/data/BlockData.java
|
||||
+++ b/src/main/java/org/bukkit/block/data/BlockData.java
|
||||
@@ -0,0 +0,0 @@ public interface BlockData extends Cloneable {
|
||||
@NotNull
|
||||
@ApiStatus.Experimental
|
||||
BlockState createBlockState();
|
||||
*/
|
||||
float getDestroySpeed(@NotNull ItemStack itemStack, boolean considerEnchants);
|
||||
// Paper end - destroy speed API
|
||||
+
|
||||
+ // Paper start - Tick API
|
||||
+ /**
|
||||
|
@ -47,5 +47,5 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ * @return is ticked randomly
|
||||
+ */
|
||||
+ boolean isRandomlyTicked();
|
||||
+ // Paper end
|
||||
+ // Paper end - Tick API
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue