C# Class Craft.Net.Server.Worlds.World

Show file Open project: ags131/SharpMinecraftLibrary Class Usage Examples

Public Properties

Property Type Description
Difficulty Difficulty
GameMode GameMode
Name string
Regions Region>.Dictionary
Seed long
SpawnPoint Vector3
WorldGenerator IWorldGenerator

Public Methods

Method Description
GetBlock ( Vector3 position ) : Craft.Net.Server.Blocks.Block
GetChunk ( Vector3 position ) : Craft.Net.Server.Worlds.Chunk

Returns the chunk at the specific position

SetBlock ( Vector3 position, Block value ) : void
SetChunk ( Vector3 position, Chunk chunk ) : void

Sets the chunk at the given position to the chunk provided.

World ( IWorldGenerator WorldGenerator ) : System
World ( IWorldGenerator WorldGenerator, long Seed ) : System

Private Methods

Method Description
FindBlockPosition ( Vector3 position, Craft.Net.Server.Worlds.Chunk &chunk ) : Vector3

Method Details

GetBlock() public method

public GetBlock ( Vector3 position ) : Craft.Net.Server.Blocks.Block
position Vector3
return Craft.Net.Server.Blocks.Block

GetChunk() public method

Returns the chunk at the specific position
public GetChunk ( Vector3 position ) : Craft.Net.Server.Worlds.Chunk
position Vector3 Position in chunk coordinates
return Craft.Net.Server.Worlds.Chunk

SetBlock() public method

public SetBlock ( Vector3 position, Block value ) : void
position Vector3
value Block
return void

SetChunk() public method

Sets the chunk at the given position to the chunk provided.
public SetChunk ( Vector3 position, Chunk chunk ) : void
position Vector3 Position in chunk coordinates
chunk Chunk
return void

World() public method

public World ( IWorldGenerator WorldGenerator ) : System
WorldGenerator IWorldGenerator
return System

World() public method

public World ( IWorldGenerator WorldGenerator, long Seed ) : System
WorldGenerator IWorldGenerator
Seed long
return System

Property Details

Difficulty public property

public Difficulty Difficulty
return Difficulty

GameMode public property

public GameMode GameMode
return GameMode

Name public property

public string Name
return string

Regions public property

public Dictionary Regions
return Region>.Dictionary

Seed public property

public long Seed
return long

SpawnPoint public property

public Vector3 SpawnPoint
return Vector3

WorldGenerator public property

public IWorldGenerator WorldGenerator
return IWorldGenerator