Skip to content

CalibratedSculkSensor 5.46.0 ​

class · pocketmine\block\CalibratedSculkSensor · source

Extends SculkSensor
Implements HorizontalFacing

A sculk sensor with twice the range and a shorter active phase. A redstone signal entering its input side (the amethyst side, facing the player who placed it) makes it only listen to vibrations of that frequency. It outputs on every side except the input.

Constants ​

ACTIVE_TICKS ​

php
public const ACTIVE_TICKS = 10

RANGE ​

php
public const RANGE = 16

Methods ​

canDetect() ​

php
public function canDetect(int $frequency) : bool

connectsToRedstoneWire() ​

php
public function connectsToRedstoneWire(int $face) : bool

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getActiveTicks() protected ​

php
protected function getActiveTicks() : int

getInputPower() ​

php
public function getInputPower() : int

Returns the redstone power received on the input side (0 if redstone is disabled).

getRange() ​

php
public function getRange() : int

getStrongPower() ​

php
public function getStrongPower(int $face) : int

getWeakPower() ​

php
public function getWeakPower(int $face) : int

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