Package net.citizensnpcs.api.event
Class NPCCombustEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
net.citizensnpcs.api.event.NPCCombustEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
NPCCombustByBlockEvent
,NPCCombustByEntityEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static HandlerList
boolean
void
setCancelled
(boolean cancelled) void
setDuration
(int duration) The number of seconds the combustee should be alight for.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NPCCombustEvent
-
-
Method Details
-
getDuration
public int getDuration()- Returns:
- the amount of time (in seconds) the combustee should be alight for
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
setDuration
public void setDuration(int duration) The number of seconds the combustee should be alight for. This value will only ever increase the combustion time, not decrease existing combustion times.- Parameters:
duration
- the time in seconds to be alight for.
-
getHandlerList
-