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

Public Member Functions

 __construct (Player $player, Location $from, Location $to)
 
 getFrom ()
 
 setFrom (Location $from)
 
 getTo ()
 
 setTo (Location $to)
 
- Public Member Functions inherited from PlayerEvent
 getPlayer ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($forceCancel=false)
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
Location  $from,
Location  $to 
)

PlayerMoveEvent constructor.

Parameters
Player$player
Location$from
Location$to
41  {
42  $this->player = $player;
43  $this->from = $from;
44  $this->to = $to;
45  }

Member Function Documentation

◆ getFrom()

getFrom ( )
Returns
Location
50  {
51  return $this->from;
52  }

◆ getTo()

getTo ( )
Returns
Location
64  {
65  return $this->to;
66  }

◆ setFrom()

setFrom ( Location  $from)
Parameters
Location$from
57  {
58  $this->from = $from;
59  }

◆ setTo()

setTo ( Location  $to)
Parameters
Location$to
71  {
72  $this->to = $to;
73  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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