Interfaces, Classes, Traits and Enums
- Populator
Table of Contents
-
$baseAmount
: int
-
$randomAmount
: int
-
populate()
: void
-
setBaseAmount()
: void
-
setRandomAmount()
: void
-
canTallGrassStay()
: bool
-
getHighestWorkableBlock()
: int
$baseAmount
private
int
$baseAmount
= 0
$randomAmount
private
int
$randomAmount
= 1
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
—
canTallGrassStay()
private
canTallGrassStay(ChunkManager $world, int $x, int $y, int $z) : bool
Parameters
-
$world
: ChunkManager
-
-
$x
: int
-
-
$y
: int
-
-
$z
: int
-
Return values
bool
—
getHighestWorkableBlock()
private
getHighestWorkableBlock(ChunkManager $world, int $x, int $z) : int
Parameters
-
$world
: ChunkManager
-
-
$x
: int
-
-
$z
: int
-
Return values
int
—