Skip to content

SweetBerryBush ​

class · pocketmine\block\SweetBerryBush · source

Extends Flowable
Implements Ageable

Constants ​

MAX_AGE ​

php
public const MAX_AGE = self::STAGE_MATURE

STAGE_BUSH_NO_BERRIES ​

php
public const STAGE_BUSH_NO_BERRIES = 1

STAGE_BUSH_SOME_BERRIES ​

php
public const STAGE_BUSH_SOME_BERRIES = 2

STAGE_MATURE ​

php
public const STAGE_MATURE = 3

STAGE_SAPLING ​

php
public const STAGE_SAPLING = 0

Methods ​

asItem() ​

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

canBeSupportedBy() protected ​

php
protected function canBeSupportedBy(\pocketmine\block\Block $block) : bool

Deprecated

Deprecated.

getBerryDropAmount() ​

php
public function getBerryDropAmount() : int

getDropsForCompatibleTool() ​

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

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

onEntityInside() ​

php
public function onEntityInside(\pocketmine\entity\Entity $entity) : bool

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

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.