PHP Interface pocketmine\level\ChunkManager

Show file Open project: iTXTech/Genisys Interface Usage Examples

Public Methods

Method Description
getBlockDataAt ( integer $x, integer $y, integer $z ) : integer Gets the raw block metadata
getBlockIdAt ( integer $x, integer $y, integer $z ) : integer Gets the raw block id.
getBlockLightAt ( integer $x, integer $y, integer $z ) : integer Gets the raw block light level
getChunk ( integer $chunkX, integer $chunkZ ) : pocketmine\level\format\FullChunk | null
getSeed ( ) : integer | string Gets the level seed
setBlockDataAt ( integer $x, integer $y, integer $z, integer $data ) Sets the raw block metadata.
setBlockIdAt ( integer $x, integer $y, integer $z, integer $id ) Sets the raw block id.
setBlockLightAt ( integer $x, integer $y, integer $z, integer $level ) Sets the raw block light level.
setChunk ( integer $chunkX, integer $chunkZ, pocketmine\level\format\FullChunk $chunk = null )
updateBlockLight ( integer $x, integer $y, integer $z ) Updates the light around the block

Method Details

getBlockDataAt() public method

Gets the raw block metadata
public getBlockDataAt ( integer $x, integer $y, integer $z ) : integer
$x integer
$y integer
$z integer
return integer 0-15

getBlockIdAt() public method

Gets the raw block id.
public getBlockIdAt ( integer $x, integer $y, integer $z ) : integer
$x integer
$y integer
$z integer
return integer 0-255

getBlockLightAt() public method

Gets the raw block light level
public getBlockLightAt ( integer $x, integer $y, integer $z ) : integer
$x integer
$y integer
$z integer
return integer 0-15

getChunk() public method

public getChunk ( integer $chunkX, integer $chunkZ ) : pocketmine\level\format\FullChunk | null
$chunkX integer
$chunkZ integer
return pocketmine\level\format\FullChunk | null

getSeed() public method

Gets the level seed
public getSeed ( ) : integer | string
return integer | string

setBlockDataAt() public method

Sets the raw block metadata.
public setBlockDataAt ( integer $x, integer $y, integer $z, integer $data )
$x integer
$y integer
$z integer
$data integer 0-15

setBlockIdAt() public method

Sets the raw block id.
public setBlockIdAt ( integer $x, integer $y, integer $z, integer $id )
$x integer
$y integer
$z integer
$id integer 0-255

setBlockLightAt() public method

Sets the raw block light level.
public setBlockLightAt ( integer $x, integer $y, integer $z, integer $level )
$x integer
$y integer
$z integer
$level integer 0-15

setChunk() public method

public setChunk ( integer $chunkX, integer $chunkZ, pocketmine\level\format\FullChunk $chunk = null )
$chunkX integer
$chunkZ integer
$chunk pocketmine\level\format\FullChunk

updateBlockLight() public method

Updates the light around the block
public updateBlockLight ( integer $x, integer $y, integer $z )
$x integer
$y integer
$z integer