GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
SpawnChangeEvent Class Reference

Public Member Functions

 __construct (Level $level, Position $previousSpawn)
 
 getPreviousSpawn ()
 
- Public Member Functions inherited from LevelEvent
 __construct (Level $level)
 
 getLevel ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

An event that is called when a level spawn changes. The previous spawn is included

Constructor & Destructor Documentation

◆ __construct()

__construct ( Level  $level,
Position  $previousSpawn 
)
Parameters
Level$level
Position$previousSpawn
41  {
42  parent::__construct($level);
43  $this->previousSpawn = $previousSpawn;
44  }

Member Function Documentation

◆ getPreviousSpawn()

getPreviousSpawn ( )
Returns
Position
49  {
50  return $this->previousSpawn;
51  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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