Skip to content

MegaJungleTree 5.46.0 ​

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

Extends TwoByTwoTree

Large jungle tree, grown from a 2x2 square of jungle saplings (x, z is the north-west sapling).

Vanilla (https://minecraft.wiki/w/Jungle_tree, Java's MegaJungleTrunkPlacer): a 2x2 trunk 10-31 blocks tall with a round crown on top, branches every few blocks on the upper part of the trunk that end in small clusters of leaves, and vines on the trunk.

Methods ​

__construct() ​

php
public function __construct()

generateTrunkHeight() protected ​

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

getBlockTransaction() ​

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

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.