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

Public Member Functions

 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 OakTree.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\generator\object\OakTree::__construct ( )

Definition at line 33 of file OakTree.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\OakTree::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 37 of file OakTree.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: