Spider 5.46.0
Extends Monster
Bedrock values: 16 health, movement 0.3, 1.4x0.9, attack 2, climbs walls, leaps at its target. Neutral in bright places (light 12 or more, vanilla brightness > 0.49) unless attacked. Carries a skeleton (spider jockey, see \pocketmine\entity\riding\Jockeys) or a baby zombie, and walks to its rider's target (vanilla behavior.mount_pathing). Loot: 0-2 string, and 0-1 spider eye when killed by a player, +0-1 each per Looting level.
Constants
ATTACK_DAMAGE
php
public const ATTACK_DAMAGE = 2.0NEUTRAL_LIGHT
php
public const NEUTRAL_LIGHT = 12Methods
calculateFallDamage() protected
php
protected function calculateFallDamage(float $fallDistance) : floatcanBeRiddenBy()
php
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : boolgetDrops()
php
public function getDrops() : arraygetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetRideableSeats()
php
public function getRideableSeats() : arrayinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisInBrightLight()
php
public function isInBrightLight() : boolSpiders don't look for targets in bright places.
registerGoals() protected
php
protected function registerGoals() : voidtryChangeMovement() protected
php
protected function tryChangeMovement() : void