Class EntityIgniteEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
io.papermc.paper.event.entity.EntityIgniteEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
CreeperIgniteEvent
Called when an entity is ignited often by fire or redstone power.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class EntityEvent
entity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Positive intGets the amount of ticks required for this entity to explode.static HandlerListbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.voidsetFuseTime(@Positive int ticks) Sets the amount of ticks required for this entity to explode.Methods inherited from class EntityEvent
getEntity, getEntityTypeMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
EntityIgniteEvent
-
-
Method Details
-
getFuseTime
public @Positive int getFuseTime()Gets the amount of ticks required for this entity to explode.- Returns:
- the amount of ticks required
-
setFuseTime
public void setFuseTime(@Positive int ticks) Sets the amount of ticks required for this entity to explode.- Parameters:
ticks- the amount of ticks required
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueif you wish to cancel this event
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-