Interface Generator
-
- All Known Implementing Classes:
AirGenerator
,BlockTestGenerator
,FullMapGenerator
,IslandGenerator
public interface Generator
An interface for a map generator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
generate(int x, int y, int z)
Define which block should appear at which coordinate.void
spawnEntities(int x, int y, int z)
Define which entities should appear at which coordinate.
-
-
-
Method Detail
-
generate
int generate(int x, int y, int z)
Define which block should appear at which coordinate.- Parameters:
x
- absolute coordy
- absolute coordz
- absolute coord- Returns:
- the block which belongs to the given coordinates. first byte id, second byte value, third and fourth are ignored
-
spawnEntities
void spawnEntities(int x, int y, int z)
Define which entities should appear at which coordinate. This method should spawn them.- Parameters:
x
-y
-z
-
-
-