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

Public Member Functions

 __construct (Entity $entity, Block $from, Block $to)
 
 getBlock ()
 
 getTo ()
 
- 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
 

Detailed Description

Called when an Entity, excluding players, changes a block directly

Constructor & Destructor Documentation

◆ __construct()

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

EntityBlockChangeEvent constructor.

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

Member Function Documentation

◆ getBlock()

getBlock ( )
Returns
Block
53  {
54  return $this->from;
55  }

◆ getTo()

getTo ( )
Returns
Block
60  {
61  return $this->to;
62  }

Field Documentation

◆ $handlerList

$handlerList = null
static

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