|
| canPlaceObject (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) |
|
| placeTrunk (ChunkManager $level, $x, $y, $z, Random $random, $trunkHeight) |
|
◆ canPlaceObject()
- Parameters
-
- Returns
- bool
60 if(!parent::canPlaceObject($level, $x, $y, $z, $random) or $level->getBlockIdAt($x, $y, $z) ==
Block::WATER or $level->getBlockIdAt($x, $y, $z) ==
Block::STILL_WATER){
63 $base =
new Vector3($x, $y, $z);
64 $this->totalHeight = $this->baseHeight + $random->nextBoundedInt(12);
65 $availableSpace = $this->getAvailableBlockSpace($level, $base, $base->add(0, $this->totalHeight - 1, 0));
66 if($availableSpace > $this->baseHeight or $availableSpace == -1){
67 if($availableSpace != -1){
68 $this->totalHeight = $availableSpace;
◆ $overridable
The documentation for this class was generated from the following file:
- src/pocketmine/level/generator/object/BigTree.php