SPIGOT-5061: Add explode and ignite methods to Creeper

By: i509VCB <null>
This commit is contained in:
Bukkit/Spigot 2019-06-14 17:21:25 -05:00
parent ca368c2f9f
commit b24d72b84a

View file

@ -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();
}