WindCharge 5.46.0
Extends Throwable
Wind charge thrown by a player. Flies straight (no gravity), deals 1 damage on a direct hit and bursts on impact, pushing every nearby entity away, the thrower included, without damaging blocks. Entities launched by the burst only take fall damage for the distance they fall below it.
Vanilla (https://minecraft.wiki/w/Wind_Charge): player wind charges deal 1 damage on Bedrock, burst in a 2.4 block sphere and have 22% more knockback than breeze wind charges. Burst radius 1.2 and knockback multiplier 1.22 are the values of Java's WindCharge. TODO: toggling doors, trapdoors, buttons, levers and other blocks hit by the burst
Constants
BURST_KNOCKBACK_MULTIPLIER
php
public const BURST_KNOCKBACK_MULTIPLIER = 1.22BURST_RADIUS
php
public const BURST_RADIUS = 1.2Properties
$burst protected
php
protected bool $burstMethods
__construct()
php
public function __construct(\pocketmine\entity\Location $location, ?\pocketmine\entity\Entity $shootingEntity, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)entityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetInitialDragMultiplier() 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() : stringonHit() protected
php
protected function onHit(\pocketmine\event\entity\ProjectileHitEvent $event) : voidonHitBlock() protected
php
protected function onHitBlock(\pocketmine\block\Block $blockHit, \pocketmine\math\RayTraceResult $hitResult) : void