Skip to content

DaylightSensor ​

class · pocketmine\block\DaylightSensor · source

Extends Transparent
Implements AnalogRedstoneSignalEmitter

Properties ​

$inverted protected ​

php
protected bool $inverted

Methods ​

describeBlockOnlyState() protected ​

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

getFuelTime() ​

php
public function getFuelTime() : int

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

getWeakPower() 5.46.0 ​

php
public function getWeakPower(int $face) : int

isInverted() ​

php
public function isInverted() : bool

isRedstoneSource() 5.46.0 ​

php
public function isRedstoneSource() : bool

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onScheduledUpdate() ​

php
public function onScheduledUpdate() : void

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setInverted() ​

php
public function setInverted(bool $inverted = true) : self

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