GenisysPro
for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
|
Public Member Functions | |
__construct (Player $player, Item $item, Vector3 $block, $face, $action=PlayerInteractEvent::RIGHT_CLICK_BLOCK) | |
getAction () | |
getItem () | |
getBlock () | |
getTouchVector () | |
getFace () | |
![]() | |
getPlayer () | |
![]() | |
getEventName () | |
getHandlers () | |
![]() | |
isCancelled () | |
setCancelled ($forceCancel=false) | |
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 | |
![]() | |
$player | |
![]() | |
$eventName = null | |
Called when a player interacts or touches a block (including air?)
__construct | ( | Player | $player, |
Item | $item, | ||
Vector3 | $block, | ||
$face, | |||
$action = PlayerInteractEvent::RIGHT_CLICK_BLOCK |
|||
) |
getAction | ( | ) |
getBlock | ( | ) |
getFace | ( | ) |
getItem | ( | ) |
getTouchVector | ( | ) |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
const LEFT_CLICK_AIR = 2 |
const LEFT_CLICK_BLOCK = 0 |
const PHYSICAL = 4 |
const RIGHT_CLICK_AIR = 3 |
const RIGHT_CLICK_BLOCK = 1 |