EatGrassGoal 5.46.0
Extends Goal
Sheep eat the grass they stand on (vanilla behavior.eat_block): short grass becomes air, a grass block becomes dirt. Eating regrows their wool and makes babies grow faster.
Properties
$sheep
php
public \pocketmine\entity\animal\Sheep $sheepMethods
__construct()
php
public function __construct(\pocketmine\entity\animal\Sheep $sheep)canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolgetFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : voidtick()
php
public function tick() : void