mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#1031: Expose Creeper igniter
This commit is contained in:
parent
ccbf091556
commit
25d548eb23
1 changed files with 27 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Creeper
|
* Represents a Creeper
|
||||||
*/
|
*/
|
||||||
|
@ -69,7 +72,7 @@ public interface Creeper extends Monster {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes this Creeper explode instantly.
|
* Makes this Creeper explode instantly.
|
||||||
*
|
* <br>
|
||||||
* The resulting explosion can be cancelled by an
|
* The resulting explosion can be cancelled by an
|
||||||
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
|
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
|
||||||
* griefing gamerule.
|
* griefing gamerule.
|
||||||
|
@ -78,13 +81,35 @@ public interface Creeper extends Monster {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ignites this Creeper, beginning its fuse.
|
* Ignites this Creeper, beginning its fuse.
|
||||||
*
|
* <br>
|
||||||
* The amount of time the Creeper takes to explode will depend on what
|
* The amount of time the Creeper takes to explode will depend on what
|
||||||
* {@link #setMaxFuseTicks} is set as.
|
* {@link #setMaxFuseTicks} is set as.
|
||||||
|
* <br>
|
||||||
|
* The resulting explosion can be cancelled by an
|
||||||
|
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
|
||||||
|
* griefing gamerule.
|
||||||
*
|
*
|
||||||
|
* @param entity the entity which ignited the creeper
|
||||||
|
*/
|
||||||
|
public void ignite(@NotNull Entity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ignites this Creeper, beginning its fuse.
|
||||||
|
* <br>
|
||||||
|
* The amount of time the Creeper takes to explode will depend on what
|
||||||
|
* {@link #setMaxFuseTicks} is set as.
|
||||||
|
* <br>
|
||||||
* The resulting explosion can be cancelled by an
|
* The resulting explosion can be cancelled by an
|
||||||
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
|
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
|
||||||
* griefing gamerule.
|
* griefing gamerule.
|
||||||
*/
|
*/
|
||||||
public void ignite();
|
public void ignite();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the entity which ignited the creeper, if available.
|
||||||
|
*
|
||||||
|
* @return the entity which ignited the creeper (if available) or null
|
||||||
|
*/
|
||||||
|
@Nullable
|
||||||
|
public Entity getIgniter();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue