PocketMine-MP 5.39.4 git-a2b7d660558310260c376d1eeaff549367b9fc6e
Loading...
Searching...
No Matches
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: