Skip to content

RedstoneLamp ​

class · pocketmine\block\RedstoneLamp · source

Extends Opaque
Implements PoweredByRedstone, Lightable

Constants ​

TURN_OFF_DELAY_TICKS 5.46.0 ​

php
public const TURN_OFF_DELAY_TICKS = 4

Methods ​

describeBlockOnlyState() protected ​

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

getLightLevel() ​

php
public function getLightLevel() : int

isLit() ​

php
public function isLit() : bool

onNearbyBlockChange() 5.46.0 ​

php
public function onNearbyBlockChange() : void

onScheduledUpdate() 5.46.0 ​

php
public function onScheduledUpdate() : void

setLit() ​

php
public function setLit(bool $lit = true) : self

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