GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
BirchTree Class Reference

Public Member Functions

 __construct ($superBirch=false)
 
 placeObject (ChunkManager $level, $x, $y, $z, Random $random)
 
- Public Member Functions inherited from Tree
 canPlaceObject (ChunkManager $level, $x, $y, $z, Random $random)
 
 placeObject (ChunkManager $level, $x, $y, $z, Random $random)
 

Protected Attributes

 $superBirch = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Tree
static growTree (ChunkManager $level, $x, $y, $z, Random $random, $type=0, bool $noBigTree=true)
 
- Data Fields inherited from Tree
 $overridable
 
 $type = 0
 
 $trunkBlock = Block::LOG
 
 $leafBlock = Block::LEAVES
 
 $treeHeight = 7
 
 $leafType = 0
 
- Protected Member Functions inherited from Tree
 placeTrunk (ChunkManager $level, $x, $y, $z, Random $random, $trunkHeight)
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $superBirch = false)

BirchTree constructor.

Parameters
bool$superBirch
39  {
40  $this->trunkBlock = Block::LOG;
41  $this->leafBlock = Block::LEAVES;
42  $this->leafType = Leaves::BIRCH;
43  $this->type = Wood::BIRCH;
44  $this->superBirch = (bool) $superBirch;
45  }

Member Function Documentation

◆ placeObject()

placeObject ( ChunkManager  $level,
  $x,
  $y,
  $z,
Random  $random 
)
Parameters
ChunkManager$level
$x
$y
$z
Random$random
54  {
55  $this->treeHeight = $random->nextBoundedInt(3) + 5;
56  if($this->superBirch){
57  $this->treeHeight += 5;
58  }
59  parent::placeObject($level, $x, $y, $z, $random);
60  }

Field Documentation

◆ $superBirch

$superBirch = false
protected

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