Skip to content

NetherTree ​

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

Extends Tree

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\Block $stemBlock, \pocketmine\block\Block $hatBlock, \pocketmine\block\Block $decorBlock, int $treeHeight, bool $hasVines, bool $huge)

canOverride() protected ​

php
protected function canOverride(\pocketmine\block\Block $block) : bool

canPlaceObject() ​

php
public function canPlaceObject(\pocketmine\world\ChunkManager $world, int $x, int $y, int $z, \pocketmine\utils\Random $random) : bool

generateTrunkHeight() protected ​

php
protected function generateTrunkHeight(\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

placeHatBlock() protected ​

php
protected function placeHatBlock(int $x, int $y, int $z, \pocketmine\utils\Random $random, \pocketmine\world\BlockTransaction $transaction, float $decorChance, float $hatChance, float $vineChance) : void

placeHatDropBlock() protected ​

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

placeTrunk() protected ​

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

tryPlaceWeepingVines() protected ​

php
protected function tryPlaceWeepingVines(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.