FlowerPot
Extends Flowable
Properties
$plant protected
php
protected ?\pocketmine\block\Block $plantMethods
canAddPlant()
php
public function canAddPlant(\pocketmine\block\Block $block) : boolgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetPickedItem()
php
public function getPickedItem(bool $addUserData = false) : \pocketmine\item\ItemgetPlant()
php
public function getPlant() : ?\pocketmine\block\BlockonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolreadStateFromWorld()
php
public function readStateFromWorld() : \pocketmine\block\BlockrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetPlant()
php
public function setPlant(?\pocketmine\block\Block $plant) : selfwriteStateToWorld()
php
public function writeStateToWorld() : void