Skip to content

Skeleton 5.46.0 ​

class · pocketmine\entity\monster\Skeleton · source

Extends Monster

Bedrock values: 20 health, movement 0.25, shoots an arrow every 3 seconds (2 on hard) within 15 blocks, strafing around its target, burns in daylight. Loot: 0-2 arrows, 0-2 bones, +0-1 each per Looting level.

Constants ​

ATTACK_RANGE ​

php
public const ATTACK_RANGE = 15.0

Methods ​

burnsInDaylight() ​

php
public function burnsInDaylight() : bool

getDrops() ​

php
public function getDrops() : array

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

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

sendSpawnPacket() protected ​

php
protected function sendSpawnPacket(\pocketmine\player\Player $player) : void

shootArrow() ​

php
public function shootArrow(\pocketmine\entity\Living $target, float $distance) : void

Shoots an arrow at the target, aiming slightly above it to compensate for gravity (vanilla).

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