FlyingMonster 5.46.0
abstract class · pocketmine\entity\monster\FlyingMonster · source
Extends Monster
A hostile mob that flies (ghast, vex, phantom): no gravity, no fall damage, moved by a FreeMoveControl instead of walking pathfinding. When nothing steers it, it drifts to a stop and hovers.
Note: phase 2 mobs may add their own flying base for passive flyers; this one is kept separate on purpose.
Properties
$flight protected
php
protected \pocketmine\entity\ai\hostile\FreeMoveControl $flightMethods
calculateFallDamage() protected
php
protected function calculateFallDamage(float $fallDistance) : floatdestroyCycles() protected
php
protected function destroyCycles() : voidgetFlightAcceleration() protected
php
protected function getFlightAcceleration() : floatHow fast the mob's motion turns towards where it wants to go (0-1 per tick).
getFlightControl()
php
public function getFlightControl() : \pocketmine\entity\ai\hostile\FreeMoveControlgetIdleDrag() protected
php
protected function getIdleDrag() : floatMotion multiplier per tick when not steered.
hasMovementUpdate()
php
public function hasMovementUpdate() : boolinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : voidtryChangeMovement() protected
php
protected function tryChangeMovement() : void