Skip to content

CaveSpider 5.46.0 ​

class · pocketmine\entity\monster\CaveSpider · source

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) : 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

getPoisonTicks() ​

php
public static function getPoisonTicks(int $difficulty) : int

Returns the poison duration in ticks of a bite on the given difficulty.

getRideableSeats() ​

php
public function getRideableSeats() : array

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

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