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

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)
 
 placeBranch (BlockTransaction $transaction, Vector3 $start, int $branchFacing, int $maxDiagonal, int $length)
 
 placeCanopy (int $x, int $y, int $z, Random $random, BlockTransaction $transaction)
 
 placeCanopyLayer (BlockTransaction $transaction, Vector3 $center, int $radius, int $maxTaxicabDistance)
 
 placeTrunk (int $x, int $y, int $z, Random $random, int $trunkHeight, BlockTransaction $transaction)
 

Detailed Description

Definition at line 34 of file AcaciaTree.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 40 of file AcaciaTree.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\AcaciaTree::generateTrunkHeight ( Random  $random)
protected

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

Definition at line 48 of file AcaciaTree.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\BirchTree, pocketmine\world\generator\object\OakTree, and pocketmine\world\generator\object\SpruceTree.

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

◆ placeBranch()

pocketmine\world\generator\object\AcaciaTree::placeBranch ( BlockTransaction  $transaction,
Vector3  $start,
int  $branchFacing,
int  $maxDiagonal,
int  $length 
)
protected

Definition at line 87 of file AcaciaTree.php.

◆ placeCanopy()

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

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

Definition at line 120 of file AcaciaTree.php.

◆ placeCanopyLayer()

pocketmine\world\generator\object\AcaciaTree::placeCanopyLayer ( BlockTransaction  $transaction,
Vector3  $center,
int  $radius,
int  $maxTaxicabDistance 
)
protected

Definition at line 103 of file AcaciaTree.php.

◆ placeTrunk()

pocketmine\world\generator\object\AcaciaTree::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 AcaciaTree.php.


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