Skip to content

TreeFactory ​

final class · pocketmine\world\generator\object\TreeFactory · source

Methods ​

get() ​

php
public static function get(\pocketmine\utils\Random $random, ?\pocketmine\world\generator\object\TreeType $type = null) : ?\pocketmine\world\generator\object\Tree

getTwoByTwo() 5.46.0 ​

php
public static function getTwoByTwo(\pocketmine\utils\Random $random, \pocketmine\world\generator\object\TreeType $type) : ?\pocketmine\world\generator\object\Tree

Returns the tree grown from a 2x2 square of saplings of the given type, or null if that type has no such tree.

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