Skip to content

ComparatorReadable 5.46.0 ​

interface · pocketmine\block\utils\ComparatorReadable · source

Implemented by blocks which a redstone comparator can read (cake, composter, lectern...). Containers are read through \pocketmine\block\tile\ComparatorReadableContainer instead.

Methods ​

getComparatorOutput() ​

php
public function getComparatorOutput() : int

Returns the signal strength (0-15) a comparator reading this block outputs.

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