SubChunkExplorer
in package
Table of Contents
- $currentChunk : Chunk|null
- $currentSubChunk : SubChunk|null
- $currentX : int
- $currentY : int
- $currentZ : int
- $world : ChunkManager
- __construct() : mixed
- invalidate() : void
- isValid() : bool
- Returns whether we currently have a valid terrain pointer.
- moveTo() : int
- moveToChunk() : int
Properties
$currentChunk
public
Chunk|null
$currentChunk
$currentSubChunk
public
SubChunk|null
$currentSubChunk
$currentX
protected
int
$currentX
$currentY
protected
int
$currentY
$currentZ
protected
int
$currentZ
$world
protected
ChunkManager
$world
Methods
__construct()
public
__construct(ChunkManager $world) : mixed
Parameters
- $world : ChunkManager
Return values
mixed —invalidate()
public
invalidate() : void
Return values
void —isValid()
Returns whether we currently have a valid terrain pointer.
public
isValid() : bool
Return values
bool —moveTo()
public
moveTo(int $x, int $y, int $z) : int
Parameters
- $x : int
- $y : int
- $z : int
Tags
Return values
int —moveToChunk()
public
moveToChunk(int $chunkX, int $chunkY, int $chunkZ) : int
Parameters
- $chunkX : int
- $chunkY : int
- $chunkZ : int