Skip to content

FrogEatMobGoal 5.46.0 ​

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

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 = 6

PULL_FORCE ​

php
public const PULL_FORCE = 0.75

REACH ​

php
public const REACH = 1.75

RUN_SPEED ​

php
public const RUN_SPEED = 2.0

Properties ​

$frog ​

php
public \pocketmine\entity\animal\Frog $frog

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\animal\Frog $frog)

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

stop() ​

php
public function stop() : 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.