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

显示文件 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_oe property

public Difficulty Difficulty
return Difficulty

GameMode public_oe property

public GameMode GameMode
return GameMode

Name public_oe property

public string Name
return string

Regions public_oe property

public Dictionary Regions
return Region>.Dictionary

Seed public_oe property

public long Seed
return long

SpawnPoint public_oe property

public Vector3 SpawnPoint
return Vector3

WorldGenerator public_oe property

public IWorldGenerator WorldGenerator
return IWorldGenerator