Endermite 5.46.0
Extends Monster
Bedrock values (endermite.json): 8 health, 0.4x0.3, movement 0.25, attack 2, targets players within 16 blocks. Endermen attack it. Non-persistent endermites vanish after 2 minutes (vanilla lifetime). No loot, 3 experience. Thrown ender pearls spawn one 5% of the time where they land (see \pocketmine\entity\projectile\EnderPearl).
Constants
ATTACK_DAMAGE
php
public const ATTACK_DAMAGE = 2.0MAX_LIFETIME
php
public const MAX_LIFETIME = 2400TAG_LIFETIME
php
public const TAG_LIFETIME = "Lifetime"Methods
entityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetInitialSizeInfo() 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) : voidregisterGoals() protected
php
protected function registerGoals() : voidsaveNBT()
php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag