From b24d72b84a0f1e3068bf99236a7d6462f2e06dfa Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 14 Jun 2019 17:21:25 -0500 Subject: [PATCH] SPIGOT-5061: Add explode and ignite methods to Creeper By: i509VCB --- .../main/java/org/bukkit/entity/Creeper.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Creeper.java b/paper-api/src/main/java/org/bukkit/entity/Creeper.java index 32f18a3ae4..ee502a773a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Creeper.java +++ b/paper-api/src/main/java/org/bukkit/entity/Creeper.java @@ -50,4 +50,23 @@ public interface Creeper extends Monster { * @return the explosion radius */ public int getExplosionRadius(); + + /** + * Makes this Creeper explode instantly. + * + * The resulting explosion can be cancelled by an + * {@link ExplosionPrimeEvent} and obeys the mob griefing gamerule. + */ + public void explode(); + + /** + * Ignites this Creeper, beginning its fuse. + * + * The amount of time the Creeper takes to explode will depend on what + * {@link #setMaxFuseTicks} is set as. + * + * The resulting explosion can be cancelled by an + * {@link ExplosionPrimeEvent} and obeys the mob griefing gamerule. + */ + public void ignite(); }