Phpcraft
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Phpcraft\World\ChunkSection Class Reference

Public Member Functions

 getPalette ()
 

Static Public Member Functions

static filled (?BlockState $filler=null)
 

Public Attributes

 $blocks
 
 $non_air_blocks
 
 $palette_cache = null
 

Detailed Description

Since
0.4.3
0.5 Moved from Phpcraft to Phpcraft\World namespace

Member Function Documentation

◆ filled()

static Phpcraft\World\ChunkSection::filled ( ?BlockState  $filler = null)
static
Parameters
BlockState | null$fillerThe BlockState to be used for all 4096 blocks in the section. Defaults to air.
Returns
ChunkSection
Since
0.5.5

◆ getPalette()

Phpcraft\World\ChunkSection::getPalette ( )

Member Data Documentation

◆ $blocks

array< BlockState > Phpcraft\World\ChunkSection::$blocks

◆ $non_air_blocks

int Phpcraft\World\ChunkSection::$non_air_blocks

◆ $palette_cache

Phpcraft\World\ChunkSection::$palette_cache = null