fCraft  0.638
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
fCraft.MapGenerator Class Reference

Provides functionality for generating map files. More...

Public Member Functions

 MapGenerator ([NotNull] MapGeneratorArgs generatorArgs)
 
Map Generate ()
 
Map GenerateMap ()
 
void AddCaves (Map map)
 

Static Public Member Functions

static Map GenerateFlatgrass (int width, int length, int height)
 Generates a new "flatgrass" map: 1 layer of grass in the middle of the map, 4 layers of dirt underneath, then stone all the way down.
 
static Map GenerateEmpty (int width, int length, int height)
 Generates a new empty map, filled entirely with air.
 
static Map GenerateOcean (int width, int length, int height)
 Generates a new "ocean" map: 1 layer of sand at the bottom the map, then solid water up to the middle of the map.
 
static void MakeFloodBarrier (Map map)
 Makes an admincrete barrier, 1 block thick, around the lower half of the map.
 
static MapGeneratorArgs MakeTemplate (MapGenTemplate template)
 

Events

ProgressChangedEventHandler ProgressChanged
 

Detailed Description

Provides functionality for generating map files.

Constructor & Destructor Documentation

fCraft.MapGenerator.MapGenerator ( [NotNull] MapGeneratorArgs  generatorArgs)

Member Function Documentation

void fCraft.MapGenerator.AddCaves ( Map  map)
Map fCraft.MapGenerator.Generate ( )
static Map fCraft.MapGenerator.GenerateEmpty ( int  width,
int  length,
int  height 
)
static

Generates a new empty map, filled entirely with air.

Parameters
widthMap width (horizontal, Notch's X).
lengthMap length (horizontal, Notch's Z).
heightMap height (vertical, Notch's Y).
Returns
Generated empty map.
Exceptions
ArgumentOutOfRangeExceptionMap width, length, or height is not between 16 and 2048.
ArgumentExceptionMap volume exceeds Int32.MaxValue.
static Map fCraft.MapGenerator.GenerateFlatgrass ( int  width,
int  length,
int  height 
)
static

Generates a new "flatgrass" map: 1 layer of grass in the middle of the map, 4 layers of dirt underneath, then stone all the way down.

Parameters
widthMap width (horizontal, Notch's X).
lengthMap length (horizontal, Notch's Z).
heightMap height (vertical, Notch's Y).
Returns
Generated flatgrass map.
Exceptions
ArgumentOutOfRangeExceptionMap width, length, or height is not between 16 and 2048.
ArgumentExceptionMap volume exceeds Int32.MaxValue.
Map fCraft.MapGenerator.GenerateMap ( )
static Map fCraft.MapGenerator.GenerateOcean ( int  width,
int  length,
int  height 
)
static

Generates a new "ocean" map: 1 layer of sand at the bottom the map, then solid water up to the middle of the map.

Parameters
widthMap width (horizontal, Notch's X).
lengthMap length (horizontal, Notch's Z).
heightMap height (vertical, Notch's Y).
Returns
Generated "ocean" map.
Exceptions
ArgumentOutOfRangeExceptionMap width, length, or height is not between 16 and 2048.
ArgumentExceptionMap volume exceeds Int32.MaxValue.
static void fCraft.MapGenerator.MakeFloodBarrier ( Map  map)
static

Makes an admincrete barrier, 1 block thick, around the lower half of the map.

static MapGeneratorArgs fCraft.MapGenerator.MakeTemplate ( MapGenTemplate  template)
static

Event Documentation

ProgressChangedEventHandler fCraft.MapGenerator.ProgressChanged

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