WitherSkull 5.46.0
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.0SPEED
php
public const SPEED = 1.2Methods
__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) : booldamageForDifficulty()
php
public static function damageForDifficulty(int $difficulty) : floatentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolexplode()
php
public function explode() : voidgetInitialDragMultiplier() protected
php
protected function getInitialDragMultiplier() : floatgetInitialGravity() protected
php
protected function getInitialGravity() : floatgetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetNetworkTypeId()
php
public static function getNetworkTypeId() : stringisDangerous()
php
public function isDangerous() : boolisFireProof()
php
public function isFireProof() : boolonHitBlock() protected
php
protected function onHitBlock(\pocketmine\block\Block $blockHit, \pocketmine\math\RayTraceResult $hitResult) : voidonHitEntity() protected
php
protected function onHitEntity(\pocketmine\entity\Entity $entityHit, \pocketmine\math\RayTraceResult $hitResult) : voidwitherDurationForDifficulty()
php
public static function witherDurationForDifficulty(int $difficulty) : intDuration of the Wither II effect given on a hit: none on easy, 10 s on normal, 40 s on hard.
