SaplingType
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 ACACIABIRCH
php
case BIRCHCHERRY 5.46.0
php
case CHERRYDARK_OAK
php
case DARK_OAKJUNGLE
php
case JUNGLEOAK
php
case OAKPALE_OAK 5.46.0
php
case PALE_OAKPOPLAR 5.46.0
php
case POPLARSPRUCE
php
case SPRUCEMethods
canGrowTwoByTwo() 5.46.0
php
public function canGrowTwoByTwo() : boolReturns 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() : stringgetTreeType()
php
public function getTreeType() : \pocketmine\world\generator\object\TreeTypeneedsTwoByTwo() 5.46.0
php
public function needsTwoByTwo() : boolReturns whether this sapling only grows when planted in a 2x2 square (dark oak, pale oak).
