[ci skip] Properly document firing of Entity/BlockExplodeEvent (#9014)
This commit is contained in:
parent
7af4cd3647
commit
e8b82590d0
2 changed files with 36 additions and 6 deletions
|
|
@ -5,13 +5,13 @@ Subject: [PATCH] Add exploded block state to BlockExplodeEvent
|
|||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java b/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||
index 44f7f6939a27b9a0a796d91eac4b7c97ec90a643..2474628851c35fe8500d4d113aaafda6ce087313 100644
|
||||
index 641c71ab66bd2499b35cf3c1d533fd105d096e10..d8b5362d0cdc3440efe30d619985018509b669e7 100644
|
||||
--- a/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||
+++ b/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||
@@ -8,18 +8,29 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Called when a block explodes
|
||||
@@ -10,18 +10,29 @@ import org.jetbrains.annotations.NotNull;
|
||||
* Called when a block explodes interacting with blocks. The
|
||||
* event isn't called if the {@link org.bukkit.GameRule#MOB_GRIEFING}
|
||||
* is disabled as no block interaction will occur.
|
||||
+ * <p>
|
||||
+ * The {@link Block} returned by this event is not necessarily
|
||||
+ * the block that caused the explosion, just the block at the location where
|
||||
|
|
@ -38,7 +38,7 @@ index 44f7f6939a27b9a0a796d91eac4b7c97ec90a643..2474628851c35fe8500d4d113aaafda6
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -32,6 +43,22 @@ public class BlockExplodeEvent extends BlockEvent implements Cancellable {
|
||||
@@ -34,6 +45,22 @@ public class BlockExplodeEvent extends BlockEvent implements Cancellable {
|
||||
this.cancel = cancel;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue