DarkOakTree 5.46.0
Extends TwoByTwoTree
Dark oak tree, grown from a 2x2 square of dark oak saplings (x, z is the north-west sapling).
Simplified from vanilla's dark oak (https://minecraft.wiki/w/Dark_Oak): a straight 2x2 trunk 6-8 blocks tall under a wide, flat canopy, with a short branch of logs and leaves sticking out at random. Vanilla's leaning trunk is not reproduced.
Methods
__construct()
php
public function __construct(?\pocketmine\block\Block $trunkBlock = null, ?\pocketmine\block\Block $leafBlock = null)decorateLowestLeaves() protected
php
protected function decorateLowestLeaves(array $lowest, \pocketmine\utils\Random $random, \pocketmine\world\BlockTransaction $transaction) : voidgetBlockTransaction()
php
public function getBlockTransaction(\pocketmine\world\ChunkManager $world, int $x, int $y, int $z, \pocketmine\utils\Random $random) : ?\pocketmine\world\BlockTransactionpickHeight() protected
php
protected function pickHeight(\pocketmine\utils\Random $random) : intplaceCanopy() protected
php
protected function placeCanopy(int $x, int $y, int $z, \pocketmine\utils\Random $random, \pocketmine\world\BlockTransaction $transaction) : void