PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\world\utils\SubChunkExplorer Class Reference
+ Collaboration diagram for pocketmine\world\utils\SubChunkExplorer:

Public Member Functions

 __construct (protected ChunkManager $world)
 
 invalidate ()
 
 isValid ()
 
 moveTo (int $x, int $y, int $z)
 
 moveToChunk (int $chunkX, int $chunkY, int $chunkZ)
 

Public Attributes

Chunk $currentChunk = null
 
SubChunk $currentSubChunk = null
 

Protected Attributes

int $currentX
 
int $currentY
 
int $currentZ
 

Detailed Description

Definition at line 30 of file SubChunkExplorer.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\world\utils\SubChunkExplorer::__construct ( protected ChunkManager $world)

Definition at line 38 of file SubChunkExplorer.php.

Member Function Documentation

◆ invalidate()

pocketmine\world\utils\SubChunkExplorer::invalidate ( )

Definition at line 90 of file SubChunkExplorer.php.

◆ isValid()

pocketmine\world\utils\SubChunkExplorer::isValid ( )

Returns whether we currently have a valid terrain pointer.

Definition at line 86 of file SubChunkExplorer.php.

◆ moveTo()

pocketmine\world\utils\SubChunkExplorer::moveTo ( int $x,
int $y,
int $z )

@phpstan-return SubChunkExplorerStatus::*

Definition at line 45 of file SubChunkExplorer.php.

References pocketmine\world\utils\SubChunkExplorerStatus\INVALID.

◆ moveToChunk()

pocketmine\world\utils\SubChunkExplorer::moveToChunk ( int $chunkX,
int $chunkY,
int $chunkZ )

@phpstan-return SubChunkExplorerStatus::*

Definition at line 78 of file SubChunkExplorer.php.

Member Data Documentation

◆ $currentChunk

Chunk pocketmine\world\utils\SubChunkExplorer::$currentChunk = null

Definition at line 31 of file SubChunkExplorer.php.

◆ $currentSubChunk

SubChunk pocketmine\world\utils\SubChunkExplorer::$currentSubChunk = null

Definition at line 32 of file SubChunkExplorer.php.

◆ $currentX

int pocketmine\world\utils\SubChunkExplorer::$currentX
protected

Definition at line 34 of file SubChunkExplorer.php.

◆ $currentY

int pocketmine\world\utils\SubChunkExplorer::$currentY
protected

Definition at line 35 of file SubChunkExplorer.php.

◆ $currentZ

int pocketmine\world\utils\SubChunkExplorer::$currentZ
protected

Definition at line 36 of file SubChunkExplorer.php.


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