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

Public Member Functions

 __construct (Human $human, float $amount, int $cause)
 
 getPlayer ()
 
 getAmount ()
 
 setAmount (float $amount)
 
- 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)
 

Data Fields

const CAUSE_ATTACK = 1
 
const CAUSE_DAMAGE = 2
 
const CAUSE_MINING = 3
 
const CAUSE_HEALTH_REGEN = 4
 
const CAUSE_POTION = 5
 
const CAUSE_WALKING = 6
 
const CAUSE_SNEAKING = 7
 
const CAUSE_SWIMMING = 8
 
const CAUSE_JUMPING = 10
 
const CAUSE_CUSTOM = 11
 
const CAUSE_FLAG_SPRINT = 0x10000
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ __construct()

__construct ( Human  $human,
float  $amount,
int  $cause 
)

PlayerExhaustEvent constructor.

Parameters
Human$human
float$amount
int$cause
54  {
55  $this->player = $human;
56  $this->amount = $amount;
57  }

Member Function Documentation

◆ getAmount()

getAmount ( )
Returns
float
69  : float{
70  return $this->amount;
71  }

◆ getPlayer()

getPlayer ( )
Returns
Human|Player
62  {
63  return $this->player;
64  }

◆ setAmount()

setAmount ( float  $amount)
Parameters
float$amount
76  {
77  $this->amount = $amount;
78  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ CAUSE_ATTACK

const CAUSE_ATTACK = 1

◆ CAUSE_CUSTOM

const CAUSE_CUSTOM = 11

◆ CAUSE_DAMAGE

const CAUSE_DAMAGE = 2

◆ CAUSE_FLAG_SPRINT

const CAUSE_FLAG_SPRINT = 0x10000

◆ CAUSE_HEALTH_REGEN

const CAUSE_HEALTH_REGEN = 4

◆ CAUSE_JUMPING

const CAUSE_JUMPING = 10

◆ CAUSE_MINING

const CAUSE_MINING = 3

◆ CAUSE_POTION

const CAUSE_POTION = 5

◆ CAUSE_SNEAKING

const CAUSE_SNEAKING = 7

◆ CAUSE_SWIMMING

const CAUSE_SWIMMING = 8

◆ CAUSE_WALKING

const CAUSE_WALKING = 6

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