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

Public Member Functions

 __construct (Player $player, $isSneaking)
 
 isSneaking ()
 
- 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
 

Protected Attributes

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

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
  $isSneaking 
)

PlayerToggleSneakEvent constructor.

Parameters
Player$player
$isSneaking
39  {
40  $this->player = $player;
41  $this->isSneaking = (bool) $isSneaking;
42  }

Member Function Documentation

◆ isSneaking()

isSneaking ( )
Returns
bool
47  {
48  return $this->isSneaking;
49  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ $isSneaking

$isSneaking
protected

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