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

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 32 of file SpruceTree.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

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

Definition at line 38 of file SpruceTree.php.

◆ getBlockTransaction()

pocketmine\world\generator\object\SpruceTree::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 42 of file SpruceTree.php.

◆ placeCanopy()

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

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

Definition at line 47 of file SpruceTree.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: