Skip to content

Vex 5.46.0 ​

class · pocketmine\entity\monster\Vex · source

Extends FlyingMonster

Bedrock values (vex.json): 14 health, 0.4x0.8, attack 3, iron sword, fire immune, flies through blocks. Charges at its target, otherwise floats around its evoker. Vexes summoned by an evoker start taking 1 damage per second after 30-119 seconds (minecraft:damage_over_time).

Constants ​

ATTACK_DAMAGE ​

php
public const ATTACK_DAMAGE = 3.0

SPEED ​

php
public const SPEED = 0.25

TAG_LIFE_TICKS ​

php
public const TAG_LIFE_TICKS = "LifeTicks"

Methods ​

attack() ​

php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : void

canBreathe() ​

php
public function canBreathe() : bool

destroyCycles() protected ​

php
protected function destroyCycles() : void

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getDrops() ​

php
public function getDrops() : array

getFlightAcceleration() protected ​

php
protected function getFlightAcceleration() : float

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getPickedItem() ​

php
public function getPickedItem() : ?\pocketmine\item\Item

getXpDropAmount() ​

php
public function getXpDropAmount() : int

initEntity() protected ​

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

isCharging() ​

php
public function isCharging() : bool

isFireProof() ​

php
public function isFireProof() : bool

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

setLimitedLife() ​

php
public function setLimitedLife(bool $limited) : void

Makes the vex start hurting itself after 30-119 seconds, like vexes summoned by an evoker.

syncNetworkData() protected ​

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

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