Skip to content

Light ​

final class · pocketmine\block\Light · source

Extends Flowable

Constants ​

MAX_LIGHT_LEVEL ​

php
public const MAX_LIGHT_LEVEL = 15

MIN_LIGHT_LEVEL ​

php
public const MIN_LIGHT_LEVEL = 0

Methods ​

canBePlacedAt() ​

php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : bool

canBeReplaced() ​

php
public function canBeReplaced() : bool

describeBlockItemState() ​

php
public function describeBlockItemState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getLightLevel() ​

php
public function getLightLevel() : int

onInteract() ​

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

setLightLevel() ​

php
public function setLightLevel(int $level) : self

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