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

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 ($forceCancel=false)
 

Data Fields

const ARM_SWING = 1
 
const WAKE_UP = 3
 

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()

__construct ( Player  $player,
  $animation = self::ARM_SWING 
)
Parameters
Player$player
int$animation
42  {
43  $this->player = $player;
44  $this->animationType = $animation;
45  }

Member Function Documentation

◆ getAnimationType()

getAnimationType ( )
Returns
int
50  {
51  return $this->animationType;
52  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ ARM_SWING

const ARM_SWING = 1

◆ WAKE_UP

const WAKE_UP = 3

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