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

Public Member Functions

 __construct ()
 
 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)
 

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 ( )

OakTree constructor.

35  {
36  $this->trunkBlock = Block::LOG;
37  $this->leafBlock = Block::LEAVES;
38  $this->leafType = Leaves::OAK;
39  $this->type = Wood::OAK;
40  }

Member Function Documentation

◆ placeObject()

placeObject ( ChunkManager  $level,
  $x,
  $y,
  $z,
Random  $random 
)
Parameters
ChunkManager$level
$x
$y
$z
Random$random
49  {
50  $this->treeHeight = $random->nextBoundedInt(3) + 4;
51  parent::placeObject($level, $x, $y, $z, $random);
52  }

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