pocketmine\event\player\PlayerAnimationEvent::__construct PHP Method

__construct() public method

public __construct ( Player $player, integer $animation = self::ARM_SWING )
$player pocketmine\Player
$animation integer
    public function __construct(Player $player, $animation = self::ARM_SWING)
    {
        $this->player = $player;
        $this->animationType = $animation;
    }