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

Public Member Functions

 __construct (World $world)
 
 init ()
 
 generate (int $x, int $z)
 

Public Attributes

 $world
 

Detailed Description

Since
0.4.3
0.5 Moved from Phpcraft to Phpcraft\World namespace

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\World\ChunkGenerator::__construct ( World  $world)

Member Function Documentation

◆ generate()

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

◆ init()

Phpcraft\World\ChunkGenerator::init ( )

Sets this ChunkGenerator to be the chunk generator of the World it belongs to and returns the world.

Returns
World

Member Data Documentation

◆ $world

World null Phpcraft\World\ChunkGenerator::$world