|
| __construct ($superBirch=false) |
|
| placeObject (ChunkManager $level, $x, $y, $z, Random $random) |
|
| canPlaceObject (ChunkManager $level, $x, $y, $z, Random $random) |
|
| placeObject (ChunkManager $level, $x, $y, $z, Random $random) |
|
|
static | growTree (ChunkManager $level, $x, $y, $z, Random $random, $type=0, bool $noBigTree=true) |
|
| $overridable |
|
| $type = 0 |
|
| $trunkBlock = Block::LOG |
|
| $leafBlock = Block::LEAVES |
|
| $treeHeight = 7 |
|
| $leafType = 0 |
|
| placeTrunk (ChunkManager $level, $x, $y, $z, Random $random, $trunkHeight) |
|
◆ __construct()
__construct |
( |
|
$superBirch = false | ) |
|
◆ placeObject()
- Parameters
-
55 $this->treeHeight = $random->nextBoundedInt(3) + 5;
56 if($this->superBirch){
57 $this->treeHeight += 5;
59 parent::placeObject($level, $x, $y, $z, $random);
◆ $superBirch
The documentation for this class was generated from the following file:
- src/pocketmine/level/generator/object/BirchTree.php