PHP Class pocketmine\level\format\anvil\Chunk

Inheritance: extends pocketmine\level\format\generic\BaseChunk
Show file Open project: iTXTech/Genisys 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 ( string $data, pocketmine\level\format\LevelProvider $provider = null ) : Chunk
getEmptyChunk ( integer $chunkX, integer $chunkZ, pocketmine\level\format\LevelProvider $provider = null ) : Chunk
getNBT ( ) : CompoundTag
isGenerated ( ) : boolean
isLightPopulated ( )
isPopulated ( ) : boolean
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 ( string $data, pocketmine\level\format\LevelProvider $provider = null ) : Chunk
$data string
$provider pocketmine\level\format\LevelProvider
return Chunk

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

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

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 property

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