Phpcraft
Public Member Functions | Public Attributes | List of all members
Phpcraft\World\StaticChunkGenerator Class Reference
Inheritance diagram for Phpcraft\World\StaticChunkGenerator:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\World\StaticChunkGenerator:
Collaboration graph
[legend]

Public Member Functions

 __construct (World $world, Chunk $chunk)
 
 generate (int $x, int $z)
 
- Public Member Functions inherited from Phpcraft\World\ChunkGenerator
 __construct (World $world)
 
 init ()
 

Public Attributes

 $chunk
 
- Public Attributes inherited from Phpcraft\World\ChunkGenerator
 $world
 

Detailed Description

A ChunkGenerator that always "generates" the same chunk, as given in the constructor.

Since
0.5

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\World\StaticChunkGenerator::__construct ( World  $world,
Chunk  $chunk 
)

Member Function Documentation

◆ generate()

Phpcraft\World\StaticChunkGenerator::generate ( int  $x,
int  $z 
)

Reimplemented from Phpcraft\World\ChunkGenerator.

Member Data Documentation

◆ $chunk

Chunk Phpcraft\World\StaticChunkGenerator::$chunk