SpawnChangeEvent
extends WorldEvent
in package
An event that is called when a world spawn changes.
The previous spawn is included
Table of Contents
- MAX_EVENT_CALL_DEPTH = 50
- $eventName : string|null
- $eventCallDepth : int
- $previousSpawn : Position
- $world : World
- __construct() : mixed
- call() : void
- Calls event handlers registered for this event.
- getEventName() : string
- getPreviousSpawn() : Position
- getWorld() : World
Constants
MAX_EVENT_CALL_DEPTH
private
mixed
MAX_EVENT_CALL_DEPTH
= 50
Properties
$eventName
protected
string|null
$eventName
= null
$eventCallDepth
private
static int
$eventCallDepth
= 1
$previousSpawn
private
Position
$previousSpawn
$world
private
World
$world
Methods
__construct()
public
__construct(World $world, Position $previousSpawn) : mixed
Parameters
Return values
mixed —call()
Calls event handlers registered for this event.
public
call() : void
Tags
Return values
void —getEventName()
public
final getEventName() : string
Return values
string —getPreviousSpawn()
public
getPreviousSpawn() : Position
Return values
Position —getWorld()
public
getWorld() : World