PocketMine-MP 5.39.4 git-a2b7d660558310260c376d1eeaff549367b9fc6e
Loading...
Searching...
No Matches
pocketmine\world\generator\object\NetherTree Class Reference
+ Inheritance diagram for pocketmine\world\generator\object\NetherTree:
+ Collaboration diagram for pocketmine\world\generator\object\NetherTree:

Public Member Functions

 __construct (Block $stemBlock, Block $hatBlock, private readonly Block $decorBlock, int $treeHeight, private readonly bool $hasVines, private readonly bool $huge)
 
 canPlaceObject (ChunkManager $world, int $x, int $y, int $z, Random $random)
 
 getBlockTransaction (ChunkManager $world, int $x, int $y, int $z, Random $random)
 

Protected Member Functions

 canOverride (Block $block)
 
 generateTrunkHeight (Random $random)
 
 placeCanopy (int $x, int $y, int $z, Random $random, BlockTransaction $transaction)
 
 placeHatBlock (int $x, int $y, int $z, Random $random, BlockTransaction $transaction, float $decorChance, float $hatChance, float $vineChance)
 
 placeHatDropBlock (int $x, int $y, int $z, Random $random, BlockTransaction $transaction, bool $isCrimson)
 
 placeTrunk (int $x, int $y, int $z, Random $random, int $trunkHeight, BlockTransaction $transaction)
 
 tryPlaceWeepingVines (int $x, int $y, int $z, Random $random, BlockTransaction $transaction)
 

Detailed Description

Definition at line 36 of file NetherTree.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\object\NetherTree::__construct ( Block $stemBlock,
Block $hatBlock,
private readonly Block $decorBlock,
int $treeHeight,
private readonly bool $hasVines,
private readonly bool $huge )

Definition at line 38 of file NetherTree.php.

Member Function Documentation

◆ canOverride()

pocketmine\world\generator\object\NetherTree::canOverride ( Block $block)
protected

Reimplemented from pocketmine\world\generator\object\Tree.

Definition at line 170 of file NetherTree.php.

◆ canPlaceObject()

pocketmine\world\generator\object\NetherTree::canPlaceObject ( ChunkManager $world,
int $x,
int $y,
int $z,
Random $random )

Reimplemented from pocketmine\world\generator\object\Tree.

Definition at line 49 of file NetherTree.php.

◆ generateTrunkHeight()

pocketmine\world\generator\object\NetherTree::generateTrunkHeight ( Random $random)
protected

Reimplemented from pocketmine\world\generator\object\Tree.

Definition at line 174 of file NetherTree.php.

◆ getBlockTransaction()

pocketmine\world\generator\object\Tree::getBlockTransaction ( ChunkManager $world,
int $x,
int $y,
int $z,
Random $random )
inherited

Returns the BlockTransaction containing all the blocks the tree would change upon growing at the given coordinates or null if the tree can't be grown

Reimplemented in pocketmine\world\generator\object\AzaleaTree, pocketmine\world\generator\object\BirchTree, pocketmine\world\generator\object\OakTree, and pocketmine\world\generator\object\SpruceTree.

Definition at line 64 of file object/Tree.php.

◆ placeCanopy()

pocketmine\world\generator\object\NetherTree::placeCanopy ( int $x,
int $y,
int $z,
Random $random,
BlockTransaction $transaction )
protected

Reimplemented from pocketmine\world\generator\object\Tree.

Definition at line 73 of file NetherTree.php.

◆ placeHatBlock()

pocketmine\world\generator\object\NetherTree::placeHatBlock ( int $x,
int $y,
int $z,
Random $random,
BlockTransaction $transaction,
float $decorChance,
float $hatChance,
float $vineChance )
protected

Definition at line 119 of file NetherTree.php.

◆ placeHatDropBlock()

pocketmine\world\generator\object\NetherTree::placeHatDropBlock ( int $x,
int $y,
int $z,
Random $random,
BlockTransaction $transaction,
bool $isCrimson )
protected

Definition at line 130 of file NetherTree.php.

◆ placeTrunk()

pocketmine\world\generator\object\NetherTree::placeTrunk ( int $x,
int $y,
int $z,
Random $random,
int $trunkHeight,
BlockTransaction $transaction )
protected

Reimplemented from pocketmine\world\generator\object\Tree.

Definition at line 53 of file NetherTree.php.

◆ tryPlaceWeepingVines()

pocketmine\world\generator\object\NetherTree::tryPlaceWeepingVines ( int $x,
int $y,
int $z,
Random $random,
BlockTransaction $transaction )
protected

Definition at line 142 of file NetherTree.php.


The documentation for this class was generated from the following file: