PHP Class pocketmine\level\generator\Generator

Datei anzeigen Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( array $settings = [] )
addGenerator ( $object, $name )
generateChunk ( $chunkX, $chunkZ )
getFastNoise1D ( Noise $noise, integer $xSize, integer $samplingRate, integer $x, integer $y, integer $z ) : SplFixedArray
getFastNoise2D ( Noise $noise, integer $xSize, integer $zSize, integer $samplingRate, integer $x, integer $y, integer $z ) : SplFixedArray
getFastNoise3D ( Noise $noise, integer $xSize, integer $ySize, integer $zSize, integer $xSamplingRate, integer $ySamplingRate, integer $zSamplingRate, integer $x, integer $y, integer $z ) : SplFixedArray
getGenerator ( $name ) : Generator
getGeneratorList ( ) : string[]
getGeneratorName ( $class )
getName ( )
getSettings ( )
getSpawn ( )
getWaterHeight ( ) : integer
init ( pocketmine\level\ChunkManager $level, Random $random )
populateChunk ( $chunkX, $chunkZ )

Method Details

__construct() abstract public method

abstract public __construct ( array $settings = [] )
$settings array

addGenerator() public static method

public static addGenerator ( $object, $name )

generateChunk() abstract public method

abstract public generateChunk ( $chunkX, $chunkZ )

getFastNoise1D() public static method

public static getFastNoise1D ( Noise $noise, integer $xSize, integer $samplingRate, integer $x, integer $y, integer $z ) : SplFixedArray
$noise pocketmine\level\generator\noise\Noise
$xSize integer
$samplingRate integer
$x integer
$y integer
$z integer
return SplFixedArray

getFastNoise2D() public static method

public static getFastNoise2D ( Noise $noise, integer $xSize, integer $zSize, integer $samplingRate, integer $x, integer $y, integer $z ) : SplFixedArray
$noise pocketmine\level\generator\noise\Noise
$xSize integer
$zSize integer
$samplingRate integer
$x integer
$y integer
$z integer
return SplFixedArray

getFastNoise3D() public static method

public static getFastNoise3D ( Noise $noise, integer $xSize, integer $ySize, integer $zSize, integer $xSamplingRate, integer $ySamplingRate, integer $zSamplingRate, integer $x, integer $y, integer $z ) : SplFixedArray
$noise pocketmine\level\generator\noise\Noise
$xSize integer
$ySize integer
$zSize integer
$xSamplingRate integer
$ySamplingRate integer
$zSamplingRate integer
$x integer
$y integer
$z integer
return SplFixedArray

getGenerator() public static method

public static getGenerator ( $name ) : Generator
$name
return Generator

getGeneratorList() public static method

public static getGeneratorList ( ) : string[]
return string[]

getGeneratorName() public static method

public static getGeneratorName ( $class )

getName() abstract public method

abstract public getName ( )

getSettings() abstract public method

abstract public getSettings ( )

getSpawn() abstract public method

abstract public getSpawn ( )

getWaterHeight() public method

public getWaterHeight ( ) : integer
return integer

init() abstract public method

abstract public init ( pocketmine\level\ChunkManager $level, Random $random )
$level pocketmine\level\ChunkManager
$random pocketmine\utils\Random

populateChunk() abstract public method

abstract public populateChunk ( $chunkX, $chunkZ )