FrogEatMobGoal 5.46.0
Extends Goal
A frog eats its target (vanilla behavior.eat_mob of frog.json): it hops to it at 2x, and once within 1.75 blocks it shoots its tongue (EAT_MOB flag, tongue sound), pulls the mob in and swallows it 0.3 seconds later (see Frog::eatMob()).
Constants
EAT_TICKS
php
public const EAT_TICKS = 6PULL_FORCE
php
public const PULL_FORCE = 0.75REACH
php
public const REACH = 1.75RUN_SPEED
php
public const RUN_SPEED = 2.0Properties
$frog
php
public \pocketmine\entity\animal\Frog $frogMethods
__construct()
php
public function __construct(\pocketmine\entity\animal\Frog $frog)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