Vex 5.46.0
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.0SPEED
php
public const SPEED = 0.25TAG_LIFE_TICKS
php
public const TAG_LIFE_TICKS = "LifeTicks"Methods
attack()
php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidcanBreathe()
php
public function canBreathe() : booldestroyCycles() protected
php
protected function destroyCycles() : voidentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetDrops()
php
public function getDrops() : arraygetFlightAcceleration() protected
php
protected function getFlightAcceleration() : floatgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\ItemgetXpDropAmount()
php
public function getXpDropAmount() : intinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisCharging()
php
public function isCharging() : boolisFireProof()
php
public function isFireProof() : boolregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetLimitedLife()
php
public function setLimitedLife(bool $limited) : voidMakes 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