pocketmine\event\player\PlayerAnimationEvent::__construct PHP Méthode

__construct() public méthode

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;
    }