CaveSpider 5.46.0
Extends Spider
Bedrock values (cave_spider.json): a small spider (12 health, 0.7x0.5, movement 0.3, attack 2) whose bites poison for 7 seconds on normal and 15 on hard (none on easy). Loot as spiders.
Methods
attackMelee()
php
public function attackMelee(\pocketmine\entity\Living $target, float $baseDamage) : 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\ItemgetPoisonTicks()
php
public static function getPoisonTicks(int $difficulty) : intReturns the poison duration in ticks of a bite on the given difficulty.
getRideableSeats()
php
public function getRideableSeats() : arrayinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void