mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
SPIGOT-5061: Add explode and ignite methods to Creeper
By: i509VCB <null>
This commit is contained in:
parent
ca368c2f9f
commit
b24d72b84a
1 changed files with 19 additions and 0 deletions
|
@ -50,4 +50,23 @@ public interface Creeper extends Monster {
|
||||||
* @return the explosion radius
|
* @return the explosion radius
|
||||||
*/
|
*/
|
||||||
public int getExplosionRadius();
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue