Skip to content

DetectorRailActivator 5.46.0 ​

interface · pocketmine\block\utils\DetectorRailActivator · source

Implemented by entities which activate detector rails: in vanilla, only minecarts do (see \pocketmine\entity\vehicle\AbstractMinecart).

Methods ​

getDetectorRailComparatorOutput() ​

php
public function getDetectorRailComparatorOutput() : int

Returns the signal strength (0-15) a comparator reading a detector rail with this entity on it outputs (the fill level of a container minecart, 0 for a plain minecart).

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