EntityCombustByBlockEvent
extends EntityCombustEvent
in package
Table of Contents
- MAX_EVENT_CALL_DEPTH = 50
- $combuster : Block
- $duration : int
- $entity : Entity
- $eventName : string|null
- $eventCallDepth : int
- $isCancelled : bool
- __construct() : mixed
- call() : void
- Calls event handlers registered for this event.
- cancel() : void
- getCombuster() : Block
- getDuration() : int
- Returns the duration in seconds the entity will burn for.
- getEntity() : Entity
- getEventName() : string
- isCancelled() : bool
- setDuration() : void
- uncancel() : void
Constants
MAX_EVENT_CALL_DEPTH
private
mixed
MAX_EVENT_CALL_DEPTH
= 50
Properties
$combuster
protected
Block
$combuster
$duration
protected
int
$duration
$entity
protected
Entity
$entity
Tags
$eventName
protected
string|null
$eventName
= null
$eventCallDepth
private
static int
$eventCallDepth
= 1
$isCancelled
private
bool
$isCancelled
= false
Methods
__construct()
public
__construct(Block $combuster, Entity $combustee, int $duration) : mixed
Parameters
Return values
mixed —call()
Calls event handlers registered for this event.
public
call() : void
Tags
Return values
void —cancel()
public
cancel() : void
Return values
void —getCombuster()
public
getCombuster() : Block
Return values
Block —getDuration()
Returns the duration in seconds the entity will burn for.
public
getDuration() : int
Return values
int —getEntity()
public
getEntity() : Entity
Tags
Return values
Entity —getEventName()
public
final getEventName() : string
Return values
string —isCancelled()
public
isCancelled() : bool
Return values
bool —setDuration()
public
setDuration(int $duration) : void
Parameters
- $duration : int
Return values
void —uncancel()
public
uncancel() : void