Skip to content

RandomLookAroundGoal 5.46.0 ​

class · pocketmine\entity\ai\goal\RandomLookAroundGoal · source

Extends Goal

Looks in a random direction for a moment while idle (vanilla behavior.random_look_around).

Properties ​

$mob ​

php
public \pocketmine\entity\Mob $mob

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Mob $mob)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

tick() ​

php
public function tick() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.