Tree
in package
implements
Populator
Interfaces, Classes, Traits and Enums
Table of Contents
- $baseAmount : int
- $randomAmount : int
- $type : TreeType
- __construct() : mixed
- populate() : void
- setBaseAmount() : void
- setRandomAmount() : void
- getHighestWorkableBlock() : int
Properties
$baseAmount
private
int
$baseAmount
= 0
$randomAmount
private
int
$randomAmount
= 1
$type
private
TreeType
$type
Methods
__construct()
public
__construct([TreeType|null $type = null ]) : mixed
Parameters
- $type : TreeType|null = null
-
default oak
Return values
mixed —populate()
public
populate(ChunkManager $world, int $chunkX, int $chunkZ, Random $random) : void
Parameters
- $world : ChunkManager
- $chunkX : int
- $chunkZ : int
- $random : Random
Return values
void —setBaseAmount()
public
setBaseAmount(int $amount) : void
Parameters
- $amount : int
Return values
void —setRandomAmount()
public
setRandomAmount(int $amount) : void
Parameters
- $amount : int
Return values
void —getHighestWorkableBlock()
private
getHighestWorkableBlock(ChunkManager $world, int $x, int $z) : int
Parameters
- $world : ChunkManager
- $x : int
- $z : int