Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.EntityCombustEvent Class Reference
Inheritance diagram for org.bukkit.event.entity.EntityCombustEvent:
org.bukkit.event.entity.EntityEvent org.bukkit.event.Cancellable org.bukkit.event.Event org.bukkit.event.entity.EntityCombustByBlockEvent org.bukkit.event.entity.EntityCombustByEntityEvent

Public Member Functions

 EntityCombustEvent (final Entity combustee, final int duration)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
int getDuration ()
 
void setDuration (int duration)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

Called when an entity combusts.

If an Entity Combust event is cancelled, the entity will not combust.

Definition at line 12 of file EntityCombustEvent.java.

Member Function Documentation

int org.bukkit.event.entity.EntityCombustEvent.getDuration ( )
Returns
the amount of time (in seconds) the combustee should be alight for

Definition at line 35 of file EntityCombustEvent.java.

35  {
36  return duration;
37  }
boolean org.bukkit.event.entity.EntityCombustEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 23 of file EntityCombustEvent.java.

23  {
24  return cancel;
25  }
void org.bukkit.event.entity.EntityCombustEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 27 of file EntityCombustEvent.java.

27  {
28  this.cancel = cancel;
29  }
void org.bukkit.event.entity.EntityCombustEvent.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
durationthe time in seconds to be alight for.

Definition at line 47 of file EntityCombustEvent.java.

47  {
48  this.duration = duration;
49  }

The documentation for this class was generated from the following file: