Skip to content

DoublePlant ​

class · pocketmine\block\DoublePlant · source

Extends Flowable

Properties ​

$top protected ​

php
protected bool $top

Methods ​

describeBlockOnlyState() protected ​

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

getAffectedBlocks() ​

php
public function getAffectedBlocks() : array

getDrops() ​

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

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

isTop() ​

php
public function isTop() : bool

isValidHalfPlant() ​

php
public function isValidHalfPlant() : bool

Returns whether this double-plant has a corresponding other half.

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : 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

setTop() ​

php
public function setTop(bool $top) : self

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