Skip to content

SaplingType ​

enum · pocketmine\block\utils\SaplingType · source

TODO: These tags need to be removed once we get rid of LegacyEnumShimTrait (PM6) These are retained for backwards compatibility only.

Cases ​

ACACIA ​

php
case ACACIA

BIRCH ​

php
case BIRCH

CHERRY 5.46.0 ​

php
case CHERRY

DARK_OAK ​

php
case DARK_OAK

JUNGLE ​

php
case JUNGLE

OAK ​

php
case OAK

PALE_OAK 5.46.0 ​

php
case PALE_OAK

POPLAR 5.46.0 ​

php
case POPLAR

SPRUCE ​

php
case SPRUCE

Methods ​

canGrowTwoByTwo() 5.46.0 ​

php
public function canGrowTwoByTwo() : bool

Returns whether this sapling grows a bigger tree when planted in a 2x2 square (spruce, jungle), or only grows in one (dark oak, pale oak).

getDisplayName() ​

php
public function getDisplayName() : string

getTreeType() ​

php
public function getTreeType() : \pocketmine\world\generator\object\TreeType

needsTwoByTwo() 5.46.0 ​

php
public function needsTwoByTwo() : bool

Returns whether this sapling only grows when planted in a 2x2 square (dark oak, pale oak).

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