mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-18 11:22:15 +01:00
parent
7df49b52f2
commit
48b3ffa858
1 changed files with 27 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
package org.bukkit.entity;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Represents a Creeper
|
||||
*/
|
||||
|
@ -69,7 +72,7 @@ public interface Creeper extends Monster {
|
|||
|
||||
/**
|
||||
* Makes this Creeper explode instantly.
|
||||
*
|
||||
* <br>
|
||||
* The resulting explosion can be cancelled by an
|
||||
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
|
||||
* griefing gamerule.
|
||||
|
@ -78,13 +81,35 @@ public interface Creeper extends Monster {
|
|||
|
||||
/**
|
||||
* 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
|
||||
* {@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
|
||||
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
|
||||
* griefing gamerule.
|
||||
*/
|
||||
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