UnknownBiome
extends Biome
in package
Polyfill class for biomes that are unknown to PocketMine-MP
Table of Contents
- MAX_BIOMES = 256
- $rainfall : float
- $temperature : float
- $groundCover : array<string|int, Block>
- $id : int
- $maxElevation : int
- $minElevation : int
- $populators : array<string|int, Populator>
- $registered : bool
- addPopulator() : void
- clearPopulators() : void
- getGroundCover() : array<string|int, Block>
- getId() : int
- getMaxElevation() : int
- getMinElevation() : int
- getName() : string
- getPopulators() : array<string|int, Populator>
- getRainfall() : float
- getTemperature() : float
- populateChunk() : void
- setElevation() : void
- setGroundCover() : void
- setId() : void
Constants
MAX_BIOMES
public
mixed
MAX_BIOMES
= 256
Properties
$rainfall
protected
float
$rainfall
= 0.5
$temperature
protected
float
$temperature
= 0.5
$groundCover
private
array<string|int, Block>
$groundCover
= []
$id
private
int
$id
$maxElevation
private
int
$maxElevation
$minElevation
private
int
$minElevation
$populators
private
array<string|int, Populator>
$populators
= []
$registered
private
bool
$registered
= false
Methods
addPopulator()
public
addPopulator(Populator $populator) : void
Parameters
- $populator : Populator
Return values
void —clearPopulators()
public
clearPopulators() : void
Return values
void —getGroundCover()
public
getGroundCover() : array<string|int, Block>
Return values
array<string|int, Block> —getId()
public
getId() : int
Return values
int —getMaxElevation()
public
getMaxElevation() : int
Return values
int —getMinElevation()
public
getMinElevation() : int
Return values
int —getName()
public
getName() : string
Return values
string —getPopulators()
public
getPopulators() : array<string|int, Populator>
Return values
array<string|int, Populator> —getRainfall()
public
getRainfall() : float
Return values
float —getTemperature()
public
getTemperature() : float
Return values
float —populateChunk()
public
populateChunk(ChunkManager $world, int $chunkX, int $chunkZ, Random $random) : void
Parameters
- $world : ChunkManager
- $chunkX : int
- $chunkZ : int
- $random : Random
Return values
void —setElevation()
public
setElevation(int $min, int $max) : void
Parameters
- $min : int
- $max : int
Return values
void —setGroundCover()
public
setGroundCover(array<string|int, Block> $covers) : void
Parameters
- $covers : array<string|int, Block>
Return values
void —setId()
public
setId(int $id) : void
Parameters
- $id : int