PHP 인터페이스 pocketmine\level\ChunkLoader

Register Level->registerChunkLoader($this, $chunkX, $chunkZ) Unregister Level->unregisterChunkLoader($this, $chunkX, $chunkZ) WARNING: When moving this object around in the world or destroying it, be sure to free the existing references from Level, otherwise you'll leak memory.
파일 보기 프로젝트 열기: ClearSkyTeam/ClearSky 0 사용 예제들

공개 메소드들

메소드 설명
getLevel ( ) : Level
getLoaderId ( ) : integer Returns the ChunkLoader id.
getPosition ( ) : Position
getX ( ) : float
getZ ( ) : float
isLoaderActive ( ) : boolean Returns if the chunk loader is currently active
onBlockChanged ( Vector3 $block ) This method will be called when a block changes in a registered chunk
onChunkChanged ( pocketmine\level\format\FullChunk $chunk ) This method will be called when a Chunk is replaced by a new one
onChunkLoaded ( pocketmine\level\format\FullChunk $chunk ) This method will be called when a registered chunk is loaded
onChunkPopulated ( pocketmine\level\format\FullChunk $chunk ) This method will be called when a registered chunk is populated Usually it'll be sent with another call to onChunkChanged()
onChunkUnloaded ( pocketmine\level\format\FullChunk $chunk ) This method will be called when a registered chunk is unloaded

메소드 상세

getLevel() 공개 메소드

public getLevel ( ) : Level
리턴 Level

getLoaderId() 공개 메소드

Call Level::generateChunkLoaderId($this) to generate and save it
public getLoaderId ( ) : integer
리턴 integer

getPosition() 공개 메소드

public getPosition ( ) : Position
리턴 Position

getX() 공개 메소드

public getX ( ) : float
리턴 float

getZ() 공개 메소드

public getZ ( ) : float
리턴 float

isLoaderActive() 공개 메소드

Returns if the chunk loader is currently active
public isLoaderActive ( ) : boolean
리턴 boolean

onBlockChanged() 공개 메소드

This method will be called when a block changes in a registered chunk
public onBlockChanged ( Vector3 $block )
$block pocketmine\math\Vector3

onChunkChanged() 공개 메소드

This method will be called when a Chunk is replaced by a new one
public onChunkChanged ( pocketmine\level\format\FullChunk $chunk )
$chunk pocketmine\level\format\FullChunk

onChunkLoaded() 공개 메소드

This method will be called when a registered chunk is loaded
public onChunkLoaded ( pocketmine\level\format\FullChunk $chunk )
$chunk pocketmine\level\format\FullChunk

onChunkPopulated() 공개 메소드

This method will be called when a registered chunk is populated Usually it'll be sent with another call to onChunkChanged()
public onChunkPopulated ( pocketmine\level\format\FullChunk $chunk )
$chunk pocketmine\level\format\FullChunk

onChunkUnloaded() 공개 메소드

This method will be called when a registered chunk is unloaded
public onChunkUnloaded ( pocketmine\level\format\FullChunk $chunk )
$chunk pocketmine\level\format\FullChunk