Skip to content

Endermite 5.46.0 ​

class · pocketmine\entity\monster\Endermite · source

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.0

MAX_LIFETIME ​

php
public const MAX_LIFETIME = 2400

TAG_LIFETIME ​

php
public const TAG_LIFETIME = "Lifetime"

Methods ​

entityBaseTick() protected ​

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

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

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

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

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