PHP Interface pocketmine\level\format\Chunk

Inheritance: extends pocketmine\level\format\FullChunk
显示文件 Open project: ClearSkyTeam/ClearSky Interface Usage Examples

Public Methods

Method Description
getSection ( integer $fY ) : pocketmine\level\format\ChunkSection
getSections ( ) : pocketmine\level\format\ChunkSection[]
isSectionEmpty ( $fY ) : boolean Tests whether a section (mini-chunk) is empty
setSection ( integer $fY, pocketmine\level\format\ChunkSection $section ) : boolean

Method Details

getSection() public method

public getSection ( integer $fY ) : pocketmine\level\format\ChunkSection
$fY integer 0-7
return pocketmine\level\format\ChunkSection

getSections() public method

public getSections ( ) : pocketmine\level\format\ChunkSection[]
return pocketmine\level\format\ChunkSection[]

isSectionEmpty() public method

Tests whether a section (mini-chunk) is empty
public isSectionEmpty ( $fY ) : boolean
$fY 0-7, (Y / 16)
return boolean

setSection() public method

public setSection ( integer $fY, pocketmine\level\format\ChunkSection $section ) : boolean
$fY integer 0-7
$section pocketmine\level\format\ChunkSection
return boolean