ItemSpawnEvent
extends EntityEvent
in package
Tags
Table of Contents
- MAX_EVENT_CALL_DEPTH = 50
- $entity : Entity
- $eventName : string|null
- $eventCallDepth : int
- __construct() : mixed
- call() : void
- Calls event handlers registered for this event.
- getEntity() : ItemEntity
- getEventName() : string
Constants
MAX_EVENT_CALL_DEPTH
private
mixed
MAX_EVENT_CALL_DEPTH
= 50
Properties
$entity
protected
Entity
$entity
Tags
$eventName
protected
string|null
$eventName
= null
$eventCallDepth
private
static int
$eventCallDepth
= 1
Methods
__construct()
public
__construct(ItemEntity $item) : mixed
Parameters
- $item : ItemEntity
Return values
mixed —call()
Calls event handlers registered for this event.
public
call() : void
Tags
Return values
void —getEntity()
public
getEntity() : ItemEntity
Return values
ItemEntity —getEventName()
public
final getEventName() : string