PocketMine
BaseLevelProvider Class Reference
Inheritance diagram for BaseLevelProvider:
LevelProvider LevelDB McRegion Anvil

Public Member Functions

 __construct (Level $level, $path)
 
 getPath ()
 
 getServer ()
 
 getLevel ()
 
 getName ()
 
 getTime ()
 
 setTime ($value)
 
 getSeed ()
 
 setSeed ($value)
 
 getSpawn ()
 
 setSpawn (Vector3 $pos)
 
 doGarbageCollection ()
 
 getLevelData ()
 
 saveLevelData ()
 
- Public Member Functions inherited from LevelProvider
 requestChunkTask ($x, $z)
 
 getGenerator ()
 
 getGeneratorOptions ()
 
 getChunk ($X, $Z, $create=false)
 
 saveChunks ()
 
 saveChunk ($X, $Z)
 
 unloadChunks ()
 
 loadChunk ($X, $Z, $create=false)
 
 unloadChunk ($X, $Z, $safe=true)
 
 isChunkGenerated ($X, $Z)
 
 isChunkPopulated ($X, $Z)
 
 isChunkLoaded ($X, $Z)
 
 setChunk ($chunkX, $chunkZ, FullChunk $chunk)
 
 getLoadedChunks ()
 
 close ()
 

Protected Attributes

 $level
 
 $path
 
 $levelData
 

Additional Inherited Members

- Static Public Member Functions inherited from LevelProvider
static getProviderName ()
 
static getProviderOrder ()
 
static usesChunkSection ()
 
static isValid ($path)
 
static generate ($path, $name, $seed, $generator, array $options=[])
 
static createChunkSection ($Y)
 
- Data Fields inherited from LevelProvider
const ORDER_YZX = 0
 
const ORDER_ZXY = 1
 

Constructor & Destructor Documentation

__construct ( Level  $level,
  $path 
)
Parameters
Level$level
string$path

Implements LevelProvider.

Member Function Documentation

getLevel ( )
Returns
Level

Implements LevelProvider.

getLevelData ( )
Returns
Compound
getName ( )
Returns
string

Implements LevelProvider.

getPath ( )
Returns
string

Implements LevelProvider.

getSeed ( )
Returns
int

Implements LevelProvider.

getSpawn ( )
Returns
Vector3

Implements LevelProvider.

getTime ( )
Returns
int

Implements LevelProvider.

setSeed (   $value)
Parameters
int$value

Implements LevelProvider.

setSpawn ( Vector3  $pos)
Parameters
Vector3$pos

Implements LevelProvider.

setTime (   $value)
Parameters
int$value

Implements LevelProvider.


The documentation for this class was generated from the following file: