PocketMine
PlayerInteractEvent Class Reference
Inheritance diagram for PlayerInteractEvent:
PlayerEvent Cancellable Event

Public Member Functions

 __construct (Player $player, Item $item, Vector3 $block, $face, $action=PlayerInteractEvent::RIGHT_CLICK_BLOCK)
 
 getAction ()
 
 getItem ()
 
 getBlock ()
 
 getTouchVector ()
 
 getFace ()
 
- Public Member Functions inherited from PlayerEvent
 getPlayer ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($value=true)
 

Data Fields

const LEFT_CLICK_BLOCK = 0
 
const RIGHT_CLICK_BLOCK = 1
 
const LEFT_CLICK_AIR = 2
 
const RIGHT_CLICK_AIR = 3
 
const PHYSICAL = 4
 

Static Public Attributes

static $handlerList = null
 

Protected Attributes

 $blockTouched
 
 $touchVector
 
 $blockFace
 
 $item
 
 $action
 
- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a player interacts or touches a block (including air?)

Member Function Documentation

getAction ( )
Returns
int
getBlock ( )
Returns
Block
getFace ( )
Returns
int
getItem ( )
Returns
Item
getTouchVector ( )
Returns
Vector3

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