Skip to content

WitherSkull 5.46.0 ​

class · pocketmine\entity\projectile\WitherSkull · source

Extends Projectile

Skull shot by the wither (Bedrock behavior_pack/entities/wither_skull.json): flies straight without gravity, hits for 5/8/12 damage (easy/normal/hard), gives Wither II for 10 s on normal and 40 s on hard, and explodes with power 1. The blue "dangerous" skull (DangerousWitherSkull) is slower.

Constants ​

EXPLOSION_POWER ​

php
public const EXPLOSION_POWER = 1.0

SPEED ​

php
public const SPEED = 1.2

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Location $location, ?\pocketmine\entity\Entity $shootingEntity, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)

canCollideWith() ​

php
public function canCollideWith(\pocketmine\entity\Entity $entity) : bool

damageForDifficulty() ​

php
public static function damageForDifficulty(int $difficulty) : float

entityBaseTick() protected ​

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

explode() ​

php
public function explode() : void

getInitialDragMultiplier() protected ​

php
protected function getInitialDragMultiplier() : float

getInitialGravity() protected ​

php
protected function getInitialGravity() : float

getInitialSizeInfo() protected ​

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

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

isDangerous() ​

php
public function isDangerous() : bool

isFireProof() ​

php
public function isFireProof() : bool

onHitBlock() protected ​

php
protected function onHitBlock(\pocketmine\block\Block $blockHit, \pocketmine\math\RayTraceResult $hitResult) : void

onHitEntity() protected ​

php
protected function onHitEntity(\pocketmine\entity\Entity $entityHit, \pocketmine\math\RayTraceResult $hitResult) : void

witherDurationForDifficulty() ​

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

Duration of the Wither II effect given on a hit: none on easy, 10 s on normal, 40 s on hard.

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