Skip to content

SnowLayer ​

class · pocketmine\block\SnowLayer · source

Extends Flowable
Implements Fallable

Constants ​

MAX_LAYERS ​

php
public const MAX_LAYERS = 8

MIN_LAYERS ​

php
public const MIN_LAYERS = 1

Properties ​

$layers protected ​

php
protected int $layers

Methods ​

canBeReplaced() ​

php
public function canBeReplaced() : bool

describeBlockOnlyState() protected ​

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

getDropsForCompatibleTool() ​

php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : array

getLayers() ​

php
public function getLayers() : int

getSupportType() ​

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

onRandomTick() ​

php
public function onRandomTick() : void

place() ​

php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : bool

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setLayers() ​

php
public function setLayers(int $layers) : self

ticksRandomly() ​

php
public function ticksRandomly() : bool

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