Skip to content

DarkOakTree 5.46.0 ​

class · pocketmine\world\generator\object\DarkOakTree · source

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) : void

getBlockTransaction() ​

php
public function getBlockTransaction(\pocketmine\world\ChunkManager $world, int $x, int $y, int $z, \pocketmine\utils\Random $random) : ?\pocketmine\world\BlockTransaction

pickHeight() protected ​

php
protected function pickHeight(\pocketmine\utils\Random $random) : int

placeCanopy() protected ​

php
protected function placeCanopy(int $x, int $y, int $z, \pocketmine\utils\Random $random, \pocketmine\world\BlockTransaction $transaction) : void

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