Target 5.46.0
Extends Opaque
Emits a redstone pulse when hit by a projectile: the closer to the centre of the face, the stronger. Bedrock has no block state for the output, so it only lives in the redstone engine (lost on chunk unload).
Constants
ARROW_PULSE_TICKS
php
public const ARROW_PULSE_TICKS = 20PROJECTILE_PULSE_TICKS
php
public const PROJECTILE_PULSE_TICKS = 8Methods
calculateHitPower()
php
public static function calculateHitPower(int $hitFace, \pocketmine\math\Vector3 $hitVector) : intReturns the power (1-15) for a hit on the given face at the given position (absolute or relative to the block).
getWeakPower()
php
public function getWeakPower(int $face) : intisRedstoneSource()
php
public function isRedstoneSource() : boolonProjectileHit()
php
public function onProjectileHit(\pocketmine\entity\projectile\Projectile $projectile, \pocketmine\math\RayTraceResult $hitResult) : voidonScheduledUpdate()
php
public function onScheduledUpdate() : void