PocketMine-MP 5.18.2 git-00e39821f06a4b6d728d35053c2621dbb19369ff
pocketmine\world\generator\object\BirchTree Class Reference
+ Inheritance diagram for pocketmine\world\generator\object\BirchTree:
+ Collaboration diagram for pocketmine\world\generator\object\BirchTree:

Public Member Functions

 __construct (protected bool $superBirch=false)
 
 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)
 
 placeTrunk (int $x, int $y, int $z, Random $random, int $trunkHeight, BlockTransaction $transaction)
 

Detailed Description

Definition at line 31 of file BirchTree.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\object\BirchTree::__construct ( protected bool  $superBirch = false)

Definition at line 32 of file BirchTree.php.

Member Function Documentation

◆ canOverride()

pocketmine\world\generator\object\Tree::canOverride ( Block  $block)
protectedinherited

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

◆ canPlaceObject()

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

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

◆ generateTrunkHeight()

pocketmine\world\generator\object\Tree::generateTrunkHeight ( Random  $random)
protectedinherited

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

◆ getBlockTransaction()

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

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 from pocketmine\world\generator\object\Tree.

Definition at line 38 of file BirchTree.php.

◆ placeCanopy()

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

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

◆ placeTrunk()

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

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


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