PHP Class pocketmine\level\generator\biome\Biome

Show file Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$grassColor
$rainfall
$temperature

Public Methods

Method Description
addPopulator ( Populator $populator )
clearPopulators ( )
getBiome ( $id ) : Biome
getColor ( ) : integer
getGroundCover ( ) : Block[]
getId ( )
getMaxElevation ( )
getMinElevation ( )
getName ( )
getPopulators ( )
getRainfall ( )
getTemperature ( )
init ( )
populateChunk ( pocketmine\level\ChunkManager $level, $chunkX, $chunkZ, Random $random )
setElevation ( $min, $max )
setGroundCover ( array $covers )
setId ( $id )

Protected Methods

Method Description
register ( $id, Biome $biome )

Private Methods

Method Description
generateBiomeColor ( $temperature, $rainfall )
interpolateColor ( $size, $x, $z, $c1, $c2, $c3, $c4 )
lerpColor ( $a, $b, $s )

Method Details

addPopulator() public method

public addPopulator ( Populator $populator )
$populator pocketmine\level\generator\populator\Populator

clearPopulators() public method

public clearPopulators ( )

getBiome() public static method

public static getBiome ( $id ) : Biome
$id
return Biome

getColor() abstract public method

abstract public getColor ( ) : integer
return integer (Red|Green|Blue)

getGroundCover() public method

public getGroundCover ( ) : Block[]
return pocketmine\block\Block[]

getId() public method

public getId ( )

getMaxElevation() public method

public getMaxElevation ( )

getMinElevation() public method

public getMinElevation ( )

getName() abstract public method

abstract public getName ( )

getPopulators() public method

public getPopulators ( )

getRainfall() public method

public getRainfall ( )

getTemperature() public method

public getTemperature ( )

init() public static method

public static init ( )

populateChunk() public method

public populateChunk ( pocketmine\level\ChunkManager $level, $chunkX, $chunkZ, Random $random )
$level pocketmine\level\ChunkManager
$random pocketmine\utils\Random

register() protected static method

protected static register ( $id, Biome $biome )
$biome Biome

setElevation() public method

public setElevation ( $min, $max )

setGroundCover() public method

public setGroundCover ( array $covers )
$covers array

setId() public method

public setId ( $id )

Property Details

$grassColor protected property

protected $grassColor

$rainfall protected property

protected $rainfall

$temperature protected property

protected $temperature