Skip to content

FlowerPot ​

class · pocketmine\block\FlowerPot · source

Extends Flowable

Properties ​

$plant protected ​

php
protected ?\pocketmine\block\Block $plant

Methods ​

canAddPlant() ​

php
public function canAddPlant(\pocketmine\block\Block $block) : bool

getDropsForCompatibleTool() ​

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

getPickedItem() ​

php
public function getPickedItem(bool $addUserData = false) : \pocketmine\item\Item

getPlant() ​

php
public function getPlant() : ?\pocketmine\block\Block

onInteract() ​

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

readStateFromWorld() ​

php
public function readStateFromWorld() : \pocketmine\block\Block

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setPlant() ​

php
public function setPlant(?\pocketmine\block\Block $plant) : self

writeStateToWorld() ​

php
public function writeStateToWorld() : void

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