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

Public Member Functions

 __construct (Entity $entity, Position $from, Position $to)
 
 getFrom ()
 
 setFrom (Position $from)
 
 getTo ()
 
 setTo (Position $to)
 
- Public Member Functions inherited from EntityEvent
 getEntity ()
 
- 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 EntityEvent
 $entity
 
- Protected Attributes inherited from Event
 $eventName = null
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Entity  $entity,
Position  $from,
Position  $to 
)

EntityTeleportEvent constructor.

Parameters
Entity$entity
Position$from
Position$to
43  {
44  $this->entity = $entity;
45  $this->from = $from;
46  $this->to = $to;
47  }

Member Function Documentation

◆ getFrom()

getFrom ( )
Returns
Position
52  {
53  return $this->from;
54  }

◆ getTo()

getTo ( )
Returns
Position
66  {
67  return $this->to;
68  }

◆ setFrom()

setFrom ( Position  $from)
Parameters
Position$from
59  {
60  $this->from = $from;
61  }

◆ setTo()

setTo ( Position  $to)
Parameters
Position$to
73  {
74  $this->to = $to;
75  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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