ShulkerBullet 5.46.0
Extends Throwable
Implements NeverSavedWithChunkEntity
Shulker bullet (minecraft:shulker_bullet): homes in on its target, deals 4 damage and gives 10 seconds of Levitation (vanilla shulker_bullet.json). Hitting it destroys it. Without a target it falls.
Constants
DAMAGE
php
public const DAMAGE = 4LEVITATION_TICKS
php
public const LEVITATION_TICKS = 200SPEED
php
public const SPEED = 0.35Methods
__construct()
php
public function __construct(\pocketmine\entity\Location $location, ?\pocketmine\entity\Entity $shootingEntity, ?\pocketmine\entity\Entity $target, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)attack()
php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidentityBaseTick() protected
php
protected function entityBaseTick(int $tickDiff = 1) : boolgetHomingTarget()
php
public function getHomingTarget() : ?\pocketmine\entity\EntitygetInitialDragMultiplier() 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() : stringhasMovementUpdate()
php
public function hasMovementUpdate() : boolonHitEntity() protected
php
protected function onHitEntity(\pocketmine\entity\Entity $entityHit, \pocketmine\math\RayTraceResult $hitResult) : voidtryChangeMovement() protected
php
protected function tryChangeMovement() : void