Skip to content

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 $flight

Methods ​

calculateFallDamage() protected ​

php
protected function calculateFallDamage(float $fallDistance) : float

destroyCycles() protected ​

php
protected function destroyCycles() : void

getFlightAcceleration() protected ​

php
protected function getFlightAcceleration() : float

How 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\FreeMoveControl

getIdleDrag() protected ​

php
protected function getIdleDrag() : float

Motion multiplier per tick when not steered.

hasMovementUpdate() ​

php
public function hasMovementUpdate() : bool

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

tryChangeMovement() protected ​

php
protected function tryChangeMovement() : void

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