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

Public Member Functions

 __construct (Player $player, $animation=self::ARM_SWING)
 
 getAnimationType ()
 
- 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 ARM_SWING = 1
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

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

Detailed Description

Called when a player does an animation

Constructor & Destructor Documentation

__construct ( Player  $player,
  $animation = self::ARM_SWING 
)
Parameters
Player$player
int$animation

Member Function Documentation

getAnimationType ( )
Returns
int

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