C# Class OpenMinecraft.MapMetadata

Mostrar archivo Open project: N3X15/MineEdit Class Usage Examples

Public Properties

Property Type Description
Entities Entity>.Dictionary
TileEntities TileEntity>.Dictionary

Public Methods

Method Description
BeginTransaction ( ) : void
CommitTransaction ( ) : void
GetKnownChunks ( int dimension ) : IEnumerable
MapMetadata ( IMapHandler _map, string folder ) : System
RollbackTransaction ( ) : void
UpdateCache ( ) : void

Protected Methods

Method Description
GetMD5HashFromFile ( string fileName ) : string

Private Methods

Method Description
BuildDatabaseIfNeeded ( ) : void
CreateCacheTable ( ) : void

Simple table for detecting version number of cache.

CreateChunksTable ( ) : void
CreateDimensionsTable ( ) : void
CreateDungeonsTable ( ) : void
CreateEntitiesTable ( ) : void
CreateTileEntitiesTable ( ) : void
CreateTreesTable ( ) : void
ExecuteNonquerySQL ( string sql ) : void
ExecuteScalarSQL ( string sql ) : object
GetChunkCoords ( string file ) : OpenMinecraft.Vector2i
LoadChunkMetadata ( Chunk &c ) : bool

Load cached data into the chunk

NBT2Bytes ( NbtCompound nbtCompound ) : object
RebuildCache ( ) : void
SaveChunkMetadata ( Chunk c ) : void
UpdateDimension ( Dimension dim ) : void

Method Details

BeginTransaction() public method

public BeginTransaction ( ) : void
return void

CommitTransaction() public method

public CommitTransaction ( ) : void
return void

GetKnownChunks() public method

public GetKnownChunks ( int dimension ) : IEnumerable
dimension int
return IEnumerable

GetMD5HashFromFile() protected method

protected GetMD5HashFromFile ( string fileName ) : string
fileName string
return string

MapMetadata() public method

public MapMetadata ( IMapHandler _map, string folder ) : System
_map IMapHandler
folder string
return System

RollbackTransaction() public method

public RollbackTransaction ( ) : void
return void

UpdateCache() public method

public UpdateCache ( ) : void
return void

Property Details

Entities public_oe property

public Dictionary Entities
return Entity>.Dictionary

TileEntities public_oe property

public Dictionary TileEntities
return TileEntity>.Dictionary