C# Class OpenMinecraft.InfdevHandler

Inheritance: IMapHandler
Mostrar archivo Open project: N3X15/MineEdit Class Usage Examples

Public Properties

Property Type Description
_CACHE_ENABLED bool
_DEBUG bool

Public Methods

Method Description
AddEntity ( Entity e ) : void
BeginTransaction ( ) : void
ChunkModified ( long x, long y ) : void
ClearInventory ( ) : void
CommitTransaction ( ) : void
CompressData ( byte &data, int x, int y, int z, byte b ) : void
CompressLight ( byte &lightdata, bool sky, int x, int y, int z, byte val ) : void
CullChunk ( long X, long Z ) : void
CullUnchanged ( ) : void
DecompressData ( byte data, int x, int y, int z ) : byte
DecompressLight ( byte lightdata, int x, int y, int z ) : int

Decompress lighting data from the tiny array that is used for lighting.

ExpandFluids ( byte fluidID, bool CompleteRegen, ForEachProgressHandler ph ) : int
ForEachCachedChunk ( CachedChunkDelegate cmd ) : void
ForEachChunk ( ChunkIteratorDelegate cmd ) : void
ForEachChunkFile ( int dimension, ChunkFileIteratorDelegate cmd ) : void
ForEachKnownChunk ( int dimension, ChunkIteratorDelegate cmd ) : void
Generate ( long X, long Z, double &min, double &max ) : bool
GetArmor ( ArmorType Armor, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
GetBlockAt ( int px, int y, int pz ) : byte
GetBlockIn ( long CX, long CZ, Vector3i pos ) : byte
GetBlockLightAt ( int px, int y, int pz ) : byte
GetChunk ( Vector3i chunkpos ) : Chunk
GetChunk ( int x, int z, bool GenerateNewChunkIfNeeded ) : Chunk
GetChunk ( long x, long y ) : Chunk
GetChunkHeightmap ( int X, int Z ) : ].double[
GetDataAt ( int px, int y, int pz ) : byte
GetDimensions ( ) : IEnumerable
GetHeightAt ( int px, int py ) : int
GetInventory ( int slot, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
GetLightAt ( int px, int y, int pz, byte &skyLight, byte &blockLight ) : void
GetMousePos ( Vector3i mp, int scale, ViewAngle angle ) : Vector3i
GetOverview ( int CX, int CY, Vector3i pos, int &h, byte &block, int &waterdepth ) : void
GetSkyLightAt ( int px, int y, int pz ) : byte
Global2Local ( Vector3d global, int &CX, int &CZ ) : Vector3d
Global2Local ( Vector3i global, int &CX, int &CZ ) : Vector3i
IsMyFiletype ( string f ) : bool
Load ( ) : void
Load ( string filename ) : void
LoadChunk ( long X, long Y ) : void
Local2Global ( int CX, int CZ, Vector3d local ) : Vector3d
Local2Global ( int CX, int CZ, Vector3i local ) : Vector3i
NewChunk ( long X, long Y ) : Chunk
Populate ( int X, int Z ) : void
RegenerateLighting ( long x, long z ) : bool

Adapted from MineServer map.cpp

RemoveEntity ( Entity e ) : void
RemoveTileEntity ( TileEntity e ) : void
Repair ( ) : void
ReplaceBlocksIn ( long X, long Z, byte>.Dictionary Replacements ) : void
Save ( ) : bool
Save ( string filename ) : bool
SaveAll ( bool cullheightmaps = true ) : void
SaveChunk ( Chunk cnk ) : void
SetArmor ( ArmorType Armor, short itemID, int Damage, int Count ) : bool
SetBlockAt ( Vector3i p, byte id ) : void
SetBlockAt ( int px, int y, int pz, byte val ) : void
SetBlockIn ( long CX, long CZ, Vector3i pos, byte type ) : void
SetBlockLightAt ( int px, int y, int pz, byte val ) : void
SetChunk ( Chunk cnk ) : void
SetChunk ( long X, long Y, Chunk c ) : void
SetChunkHeightmap ( int X, int Z, double cnk ) : void
SetDataAt ( int px, int y, int pz, byte p ) : void
SetDimension ( int ID ) : void
SetEntity ( Entity e ) : void
SetHeightAt ( int x, int z, int h, byte mat ) : void
SetInventory ( int slot, short itemID, int Damage, int Count ) : bool
SetSkyLightAt ( int px, int y, int pz, byte val ) : void
SetTileEntity ( TileEntity e ) : void
UnloadChunks ( ) : void

Protected Methods

Method Description
NewNBTChunk ( long X, long Z ) : NbtCompound

Private Methods

Method Description
AddLightSourceAt ( int _x, int _y, int _z, int strength ) : void
AssertBottomBarrierIntegrity ( byte b, string message ) : void
Check ( long x, long min, long max ) : bool
CompressDatamap ( byte blocks ) : byte[]
CompressLightmap ( byte blocks, bool sky ) : byte[]
DecompressBlocks ( byte p ) : byte[,,]
DecompressDatamap ( byte databuffer ) : byte[,,]
DecompressLightmap ( byte databuffer ) : byte[,,]
ExpandFluids ( long X, long Z, byte fluidID, bool CompleteRegen ) : int
GetBlockIndex ( int x, int y, int z ) : int
GetBlockNumbers ( byte b ) : int>.Dictionary
GetChunkFilename ( int x, int z ) : string
GetChunkHandle ( int x, int z ) : OpenMinecraft.Vector2i
GetPrelimHeightAt ( int px, int py ) : double
LoadEnts ( Chunk &cnk, int CX, int CZ, NbtList ents ) : void
LoadMapGenerator ( ) : void
LoadTileEnts ( Chunk &cnk, int CX, int CZ, NbtList ents ) : void
SaveChunk ( int x, int z ) : void
SaveMapGenerator ( ) : void
SetChunk ( int X, int Z, Chunk c ) : void
SetPrelimHeightAt ( int px, int py, double val ) : void
SpreadLight ( int x, int y, int z, int skylight, int blocklight, int recurselevel ) : bool
_GetChunkCoordsFromFile ( string file ) : OpenMinecraft.Vector2i
_LoadChunk ( int x, int z ) : Chunk

Method Details

AddEntity() public method

public AddEntity ( Entity e ) : void
e Entity
return void

BeginTransaction() public method

public BeginTransaction ( ) : void
return void

ChunkModified() public method

public ChunkModified ( long x, long y ) : void
x long
y long
return void

ClearInventory() public method

public ClearInventory ( ) : void
return void

CommitTransaction() public method

public CommitTransaction ( ) : void
return void

CompressData() public method

public CompressData ( byte &data, int x, int y, int z, byte b ) : void
data byte
x int
y int
z int
b byte
return void

CompressLight() public method

public CompressLight ( byte &lightdata, bool sky, int x, int y, int z, byte val ) : void
lightdata byte
sky bool
x int
y int
z int
val byte
return void

CullChunk() public method

public CullChunk ( long X, long Z ) : void
X long
Z long
return void

CullUnchanged() public method

public CullUnchanged ( ) : void
return void

DecompressData() public method

public DecompressData ( byte data, int x, int y, int z ) : byte
data byte
x int
y int
z int
return byte

DecompressLight() public method

Decompress lighting data from the tiny array that is used for lighting.
public DecompressLight ( byte lightdata, int x, int y, int z ) : int
lightdata byte Compressed lighting bytearray (from /Level/{BlockLight,SkyLight})
x int XCoord
y int YCoord
z int ZCoord
return int

ExpandFluids() public method

public ExpandFluids ( byte fluidID, bool CompleteRegen, ForEachProgressHandler ph ) : int
fluidID byte
CompleteRegen bool
ph ForEachProgressHandler
return int

ForEachCachedChunk() public method

public ForEachCachedChunk ( CachedChunkDelegate cmd ) : void
cmd CachedChunkDelegate
return void

ForEachChunk() public method

public ForEachChunk ( ChunkIteratorDelegate cmd ) : void
cmd ChunkIteratorDelegate
return void

ForEachChunkFile() public method

public ForEachChunkFile ( int dimension, ChunkFileIteratorDelegate cmd ) : void
dimension int
cmd ChunkFileIteratorDelegate
return void

ForEachKnownChunk() public method

public ForEachKnownChunk ( int dimension, ChunkIteratorDelegate cmd ) : void
dimension int
cmd ChunkIteratorDelegate
return void

Generate() public method

public Generate ( long X, long Z, double &min, double &max ) : bool
X long
Z long
min double
max double
return bool

GetArmor() public method

public GetArmor ( ArmorType Armor, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
Armor ArmorType
itemID short
Damage short
Count byte
failreason string
return bool

GetBlockAt() public method

public GetBlockAt ( int px, int y, int pz ) : byte
px int
y int
pz int
return byte

GetBlockIn() public method

public GetBlockIn ( long CX, long CZ, Vector3i pos ) : byte
CX long
CZ long
pos Vector3i
return byte

GetBlockLightAt() public method

public GetBlockLightAt ( int px, int y, int pz ) : byte
px int
y int
pz int
return byte

GetChunk() public method

public GetChunk ( Vector3i chunkpos ) : Chunk
chunkpos Vector3i
return Chunk

GetChunk() public method

public GetChunk ( int x, int z, bool GenerateNewChunkIfNeeded ) : Chunk
x int
z int
GenerateNewChunkIfNeeded bool
return Chunk

GetChunk() public method

public GetChunk ( long x, long y ) : Chunk
x long
y long
return Chunk

GetChunkHeightmap() public method

public GetChunkHeightmap ( int X, int Z ) : ].double[
X int
Z int
return ].double[

GetDataAt() public method

public GetDataAt ( int px, int y, int pz ) : byte
px int
y int
pz int
return byte

GetDimensions() public method

public GetDimensions ( ) : IEnumerable
return IEnumerable

GetHeightAt() public method

public GetHeightAt ( int px, int py ) : int
px int
py int
return int

GetInventory() public method

public GetInventory ( int slot, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
slot int
itemID short
Damage short
Count byte
failreason string
return bool

GetLightAt() public method

public GetLightAt ( int px, int y, int pz, byte &skyLight, byte &blockLight ) : void
px int
y int
pz int
skyLight byte
blockLight byte
return void

GetMousePos() public method

public GetMousePos ( Vector3i mp, int scale, ViewAngle angle ) : Vector3i
mp Vector3i
scale int
angle ViewAngle
return Vector3i

GetOverview() public method

public GetOverview ( int CX, int CY, Vector3i pos, int &h, byte &block, int &waterdepth ) : void
CX int
CY int
pos Vector3i
h int
block byte
waterdepth int
return void

GetSkyLightAt() public method

public GetSkyLightAt ( int px, int y, int pz ) : byte
px int
y int
pz int
return byte

Global2Local() public method

public Global2Local ( Vector3d global, int &CX, int &CZ ) : Vector3d
global Vector3d
CX int
CZ int
return Vector3d

Global2Local() public method

public Global2Local ( Vector3i global, int &CX, int &CZ ) : Vector3i
global Vector3i
CX int
CZ int
return Vector3i

IsMyFiletype() public method

public IsMyFiletype ( string f ) : bool
f string
return bool

Load() public method

public Load ( ) : void
return void

Load() public method

public Load ( string filename ) : void
filename string
return void

LoadChunk() public method

public LoadChunk ( long X, long Y ) : void
X long
Y long
return void

Local2Global() public method

public Local2Global ( int CX, int CZ, Vector3d local ) : Vector3d
CX int
CZ int
local Vector3d
return Vector3d

Local2Global() public method

public Local2Global ( int CX, int CZ, Vector3i local ) : Vector3i
CX int
CZ int
local Vector3i
return Vector3i

NewChunk() public method

public NewChunk ( long X, long Y ) : Chunk
X long
Y long
return Chunk

NewNBTChunk() protected method

protected NewNBTChunk ( long X, long Z ) : NbtCompound
X long
Z long
return NbtCompound

Populate() public method

public Populate ( int X, int Z ) : void
X int
Z int
return void

RegenerateLighting() public method

Adapted from MineServer map.cpp
public RegenerateLighting ( long x, long z ) : bool
x long
z long
return bool

RemoveEntity() public method

public RemoveEntity ( Entity e ) : void
e Entity
return void

RemoveTileEntity() public method

public RemoveTileEntity ( TileEntity e ) : void
e OpenMinecraft.TileEntities.TileEntity
return void

Repair() public method

public Repair ( ) : void
return void

ReplaceBlocksIn() public method

public ReplaceBlocksIn ( long X, long Z, byte>.Dictionary Replacements ) : void
X long
Z long
Replacements byte>.Dictionary
return void

Save() public method

public Save ( ) : bool
return bool

Save() public method

public Save ( string filename ) : bool
filename string
return bool

SaveAll() public method

public SaveAll ( bool cullheightmaps = true ) : void
cullheightmaps bool
return void

SaveChunk() public method

public SaveChunk ( Chunk cnk ) : void
cnk Chunk
return void

SetArmor() public method

public SetArmor ( ArmorType Armor, short itemID, int Damage, int Count ) : bool
Armor ArmorType
itemID short
Damage int
Count int
return bool

SetBlockAt() public method

public SetBlockAt ( Vector3i p, byte id ) : void
p Vector3i
id byte
return void

SetBlockAt() public method

public SetBlockAt ( int px, int y, int pz, byte val ) : void
px int
y int
pz int
val byte
return void

SetBlockIn() public method

public SetBlockIn ( long CX, long CZ, Vector3i pos, byte type ) : void
CX long
CZ long
pos Vector3i
type byte
return void

SetBlockLightAt() public method

public SetBlockLightAt ( int px, int y, int pz, byte val ) : void
px int
y int
pz int
val byte
return void

SetChunk() public method

public SetChunk ( Chunk cnk ) : void
cnk Chunk
return void

SetChunk() public method

public SetChunk ( long X, long Y, Chunk c ) : void
X long
Y long
c Chunk
return void

SetChunkHeightmap() public method

public SetChunkHeightmap ( int X, int Z, double cnk ) : void
X int
Z int
cnk double
return void

SetDataAt() public method

public SetDataAt ( int px, int y, int pz, byte p ) : void
px int
y int
pz int
p byte
return void

SetDimension() public method

public SetDimension ( int ID ) : void
ID int
return void

SetEntity() public method

public SetEntity ( Entity e ) : void
e Entity
return void

SetHeightAt() public method

public SetHeightAt ( int x, int z, int h, byte mat ) : void
x int
z int
h int
mat byte
return void

SetInventory() public method

public SetInventory ( int slot, short itemID, int Damage, int Count ) : bool
slot int
itemID short
Damage int
Count int
return bool

SetSkyLightAt() public method

public SetSkyLightAt ( int px, int y, int pz, byte val ) : void
px int
y int
pz int
val byte
return void

SetTileEntity() public method

public SetTileEntity ( TileEntity e ) : void
e OpenMinecraft.TileEntities.TileEntity
return void

UnloadChunks() public method

public UnloadChunks ( ) : void
return void

Property Details

_CACHE_ENABLED public_oe property

public bool _CACHE_ENABLED
return bool

_DEBUG public_oe property

public bool _DEBUG
return bool