geforkt von Mirrors/Paper
[ci skip] Properly document firing of Entity/BlockExplodeEvent (#9014)
Dieser Commit ist enthalten in:
Ursprung
edd270486c
Commit
5ea4ace885
@ -9,9 +9,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
--- a/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||||
+++ b/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
+++ b/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||||
@@ -0,0 +0,0 @@ import org.jetbrains.annotations.NotNull;
|
@@ -0,0 +0,0 @@ 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}
|
||||||
* Called when a block explodes
|
* is disabled as no block interaction will occur.
|
||||||
+ * <p>
|
+ * <p>
|
||||||
+ * The {@link Block} returned by this event is not necessarily
|
+ * The {@link Block} returned by this event is not necessarily
|
||||||
+ * the block that caused the explosion, just the block at the location where
|
+ * the block that caused the explosion, just the block at the location where
|
||||||
|
@ -200,6 +200,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
* @param sz The new size of the slime.
|
* @param sz The new size of the slime.
|
||||||
*/
|
*/
|
||||||
public void setSize(int sz);
|
public void setSize(int sz);
|
||||||
|
diff --git a/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java b/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||||
|
+++ b/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java
|
||||||
|
@@ -0,0 +0,0 @@ import org.bukkit.event.HandlerList;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
- * Called when a block explodes
|
||||||
|
+ * 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.
|
||||||
|
*/
|
||||||
|
public class BlockExplodeEvent extends BlockEvent implements Cancellable {
|
||||||
|
private static final HandlerList handlers = new HandlerList();
|
||||||
diff --git a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
|
diff --git a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
|
--- a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
|
||||||
@ -214,6 +229,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
*/
|
*/
|
||||||
EXPLOSION,
|
EXPLOSION,
|
||||||
/**
|
/**
|
||||||
|
diff --git a/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java b/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java
|
||||||
|
+++ b/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java
|
||||||
|
@@ -0,0 +0,0 @@ import org.bukkit.event.HandlerList;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
- * Called when an entity explodes
|
||||||
|
+ * Called when an entity 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.
|
||||||
|
*/
|
||||||
|
public class EntityExplodeEvent extends EntityEvent implements Cancellable {
|
||||||
|
private static final HandlerList handlers = new HandlerList();
|
||||||
diff --git a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java
|
diff --git a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java b/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java
|
--- a/src/main/java/org/bukkit/event/entity/EntityRegainHealthEvent.java
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren