Skip to content

ChunkLoadEvent ​

class · pocketmine\event\world\ChunkLoadEvent · source

Extends ChunkEvent

Called when a Chunk is loaded or newly created by the world generator.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world, int $chunkX, int $chunkZ, \pocketmine\world\format\Chunk $chunk, bool $newChunk)

isNewChunk() ​

php
public function isNewChunk() : bool

Returns whether the chunk is newly generated. If false, the chunk was loaded from storage.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.