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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
  $isSprinting 
)

PlayerToggleSprintEvent constructor.

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

Member Function Documentation

◆ isSprinting()

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

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ $isSprinting

$isSprinting
protected

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