PHP Class pocketmine\level\format\mcregion\Chunk

Inheritance: extends pocketmine\level\format\generic\BaseFullChunk
Exibir arquivo Open project: robske110/ClearSky Class Usage Examples

Protected Properties

Property Type Description
$nbt pocketmine\nbt\tag\CompoundTag

Public Methods

Method Description
__construct ( $level, CompoundTag $nbt = null )
fromBinary ( string $data, pocketmine\level\format\LevelProvider $provider = null ) : Chunk
fromFastBinary ( $data, pocketmine\level\format\LevelProvider $provider = null )
getBlockData ( $x, $y, $z )
getBlockDataColumn ( $x, $z )
getBlockId ( $x, $y, $z )
getBlockIdColumn ( $x, $z )
getBlockLight ( $x, $y, $z )
getBlockLightColumn ( $x, $z )
getBlockSkyLight ( $x, $y, $z )
getBlockSkyLightColumn ( $x, $z )
getEmptyChunk ( integer $chunkX, integer $chunkZ, pocketmine\level\format\LevelProvider $provider = null ) : Chunk
getFullBlock ( $x, $y, $z )
getNBT ( ) : CompoundTag
isGenerated ( ) : boolean
isLightPopulated ( )
isPopulated ( ) : boolean
setBlock ( $x, $y, $z, $blockId = null, $meta = null )
setBlockData ( $x, $y, $z, $data )
setBlockId ( $x, $y, $z, $id )
setBlockLight ( $x, $y, $z, $level )
setBlockSkyLight ( $x, $y, $z, $level )
setGenerated ( integer $value = 1 )
setLightPopulated ( $value = 1 )
setPopulated ( integer $value = 1 )
toBinary ( )
toFastBinary ( )

Method Details

__construct() public method

public __construct ( $level, CompoundTag $nbt = null )
$nbt pocketmine\nbt\tag\CompoundTag

fromBinary() public static method

public static fromBinary ( string $data, pocketmine\level\format\LevelProvider $provider = null ) : Chunk
$data string
$provider pocketmine\level\format\LevelProvider
return Chunk

fromFastBinary() public static method

public static fromFastBinary ( $data, pocketmine\level\format\LevelProvider $provider = null )
$provider pocketmine\level\format\LevelProvider

getBlockData() public method

public getBlockData ( $x, $y, $z )

getBlockDataColumn() public method

public getBlockDataColumn ( $x, $z )

getBlockId() public method

public getBlockId ( $x, $y, $z )

getBlockIdColumn() public method

public getBlockIdColumn ( $x, $z )

getBlockLight() public method

public getBlockLight ( $x, $y, $z )

getBlockLightColumn() public method

public getBlockLightColumn ( $x, $z )

getBlockSkyLight() public method

public getBlockSkyLight ( $x, $y, $z )

getBlockSkyLightColumn() public method

public getBlockSkyLightColumn ( $x, $z )

getEmptyChunk() public static method

public static getEmptyChunk ( integer $chunkX, integer $chunkZ, pocketmine\level\format\LevelProvider $provider = null ) : Chunk
$chunkX integer
$chunkZ integer
$provider pocketmine\level\format\LevelProvider
return Chunk

getFullBlock() public method

public getFullBlock ( $x, $y, $z )

getNBT() public method

public getNBT ( ) : CompoundTag
return pocketmine\nbt\tag\CompoundTag

isGenerated() public method

public isGenerated ( ) : boolean
return boolean

isLightPopulated() public method

public isLightPopulated ( )

isPopulated() public method

public isPopulated ( ) : boolean
return boolean

setBlock() public method

public setBlock ( $x, $y, $z, $blockId = null, $meta = null )

setBlockData() public method

public setBlockData ( $x, $y, $z, $data )

setBlockId() public method

public setBlockId ( $x, $y, $z, $id )

setBlockLight() public method

public setBlockLight ( $x, $y, $z, $level )

setBlockSkyLight() public method

public setBlockSkyLight ( $x, $y, $z, $level )

setGenerated() public method

public setGenerated ( integer $value = 1 )
$value integer

setLightPopulated() public method

public setLightPopulated ( $value = 1 )

setPopulated() public method

public setPopulated ( integer $value = 1 )
$value integer

toBinary() public method

public toBinary ( )

toFastBinary() public method

public toFastBinary ( )

Property Details

$nbt protected_oe property

protected CompoundTag,pocketmine\nbt\tag $nbt
return pocketmine\nbt\tag\CompoundTag