Skip to content

Snowball ​

class · pocketmine\entity\projectile\Snowball · source

Extends Throwable

Snowballs only push mobs, except blazes which take 3 damage (vanilla Snowball.onHitEntity).

Constants ​

BLAZE_DAMAGE 5.46.0 ​

php
public const BLAZE_DAMAGE = 3.0

Methods ​

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

onHit() protected ​

php
protected function onHit(\pocketmine\event\entity\ProjectileHitEvent $event) : void

onHitEntity() 5.46.0 protected ​

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

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