Skip to content

DoublePitcherCrop ​

final class · pocketmine\block\DoublePitcherCrop · source

Extends DoublePlant
Implements Ageable

Constants ​

MAX_AGE ​

php
public const MAX_AGE = 1

Methods ​

asItem() ​

php
public function asItem() : \pocketmine\item\Item

describeBlockOnlyState() ​

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

getDropsForCompatibleTool() ​

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

onInteract() ​

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

onRandomTick() ​

php
public function onRandomTick() : void

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

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.