C# Класс OpenMinecraft.InfdevHandler

Наследование: IMapHandler
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
_CACHE_ENABLED bool
_DEBUG bool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
NewNBTChunk ( long X, long Z ) : NbtCompound

Приватные методы

Метод Описание
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

Описание методов

AddEntity() публичный метод

public AddEntity ( Entity e ) : void
e Entity
Результат void

BeginTransaction() публичный метод

public BeginTransaction ( ) : void
Результат void

ChunkModified() публичный метод

public ChunkModified ( long x, long y ) : void
x long
y long
Результат void

ClearInventory() публичный метод

public ClearInventory ( ) : void
Результат void

CommitTransaction() публичный метод

public CommitTransaction ( ) : void
Результат void

CompressData() публичный метод

public CompressData ( byte &data, int x, int y, int z, byte b ) : void
data byte
x int
y int
z int
b byte
Результат void

CompressLight() публичный метод

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
Результат void

CullChunk() публичный метод

public CullChunk ( long X, long Z ) : void
X long
Z long
Результат void

CullUnchanged() публичный метод

public CullUnchanged ( ) : void
Результат void

DecompressData() публичный метод

public DecompressData ( byte data, int x, int y, int z ) : byte
data byte
x int
y int
z int
Результат byte

DecompressLight() публичный метод

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
Результат int

ExpandFluids() публичный метод

public ExpandFluids ( byte fluidID, bool CompleteRegen, ForEachProgressHandler ph ) : int
fluidID byte
CompleteRegen bool
ph ForEachProgressHandler
Результат int

ForEachCachedChunk() публичный метод

public ForEachCachedChunk ( CachedChunkDelegate cmd ) : void
cmd CachedChunkDelegate
Результат void

ForEachChunk() публичный метод

public ForEachChunk ( ChunkIteratorDelegate cmd ) : void
cmd ChunkIteratorDelegate
Результат void

ForEachChunkFile() публичный метод

public ForEachChunkFile ( int dimension, ChunkFileIteratorDelegate cmd ) : void
dimension int
cmd ChunkFileIteratorDelegate
Результат void

ForEachKnownChunk() публичный метод

public ForEachKnownChunk ( int dimension, ChunkIteratorDelegate cmd ) : void
dimension int
cmd ChunkIteratorDelegate
Результат void

Generate() публичный метод

public Generate ( long X, long Z, double &min, double &max ) : bool
X long
Z long
min double
max double
Результат bool

GetArmor() публичный метод

public GetArmor ( ArmorType Armor, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
Armor ArmorType
itemID short
Damage short
Count byte
failreason string
Результат bool

GetBlockAt() публичный метод

public GetBlockAt ( int px, int y, int pz ) : byte
px int
y int
pz int
Результат byte

GetBlockIn() публичный метод

public GetBlockIn ( long CX, long CZ, Vector3i pos ) : byte
CX long
CZ long
pos Vector3i
Результат byte

GetBlockLightAt() публичный метод

public GetBlockLightAt ( int px, int y, int pz ) : byte
px int
y int
pz int
Результат byte

GetChunk() публичный метод

public GetChunk ( Vector3i chunkpos ) : Chunk
chunkpos Vector3i
Результат Chunk

GetChunk() публичный метод

public GetChunk ( int x, int z, bool GenerateNewChunkIfNeeded ) : Chunk
x int
z int
GenerateNewChunkIfNeeded bool
Результат Chunk

GetChunk() публичный метод

public GetChunk ( long x, long y ) : Chunk
x long
y long
Результат Chunk

GetChunkHeightmap() публичный метод

public GetChunkHeightmap ( int X, int Z ) : ].double[
X int
Z int
Результат ].double[

GetDataAt() публичный метод

public GetDataAt ( int px, int y, int pz ) : byte
px int
y int
pz int
Результат byte

GetDimensions() публичный метод

public GetDimensions ( ) : IEnumerable
Результат IEnumerable

GetHeightAt() публичный метод

public GetHeightAt ( int px, int py ) : int
px int
py int
Результат int

GetInventory() публичный метод

public GetInventory ( int slot, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
slot int
itemID short
Damage short
Count byte
failreason string
Результат bool

GetLightAt() публичный метод

public GetLightAt ( int px, int y, int pz, byte &skyLight, byte &blockLight ) : void
px int
y int
pz int
skyLight byte
blockLight byte
Результат void

GetMousePos() публичный метод

public GetMousePos ( Vector3i mp, int scale, ViewAngle angle ) : Vector3i
mp Vector3i
scale int
angle ViewAngle
Результат Vector3i

GetOverview() публичный метод

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
Результат void

GetSkyLightAt() публичный метод

public GetSkyLightAt ( int px, int y, int pz ) : byte
px int
y int
pz int
Результат byte

Global2Local() публичный метод

public Global2Local ( Vector3d global, int &CX, int &CZ ) : Vector3d
global Vector3d
CX int
CZ int
Результат Vector3d

Global2Local() публичный метод

public Global2Local ( Vector3i global, int &CX, int &CZ ) : Vector3i
global Vector3i
CX int
CZ int
Результат Vector3i

IsMyFiletype() публичный метод

public IsMyFiletype ( string f ) : bool
f string
Результат bool

Load() публичный метод

public Load ( ) : void
Результат void

Load() публичный метод

public Load ( string filename ) : void
filename string
Результат void

LoadChunk() публичный метод

public LoadChunk ( long X, long Y ) : void
X long
Y long
Результат void

Local2Global() публичный метод

public Local2Global ( int CX, int CZ, Vector3d local ) : Vector3d
CX int
CZ int
local Vector3d
Результат Vector3d

Local2Global() публичный метод

public Local2Global ( int CX, int CZ, Vector3i local ) : Vector3i
CX int
CZ int
local Vector3i
Результат Vector3i

NewChunk() публичный метод

public NewChunk ( long X, long Y ) : Chunk
X long
Y long
Результат Chunk

NewNBTChunk() защищенный метод

protected NewNBTChunk ( long X, long Z ) : NbtCompound
X long
Z long
Результат NbtCompound

Populate() публичный метод

public Populate ( int X, int Z ) : void
X int
Z int
Результат void

RegenerateLighting() публичный метод

Adapted from MineServer map.cpp
public RegenerateLighting ( long x, long z ) : bool
x long
z long
Результат bool

RemoveEntity() публичный метод

public RemoveEntity ( Entity e ) : void
e Entity
Результат void

RemoveTileEntity() публичный метод

public RemoveTileEntity ( TileEntity e ) : void
e OpenMinecraft.TileEntities.TileEntity
Результат void

Repair() публичный метод

public Repair ( ) : void
Результат void

ReplaceBlocksIn() публичный метод

public ReplaceBlocksIn ( long X, long Z, byte>.Dictionary Replacements ) : void
X long
Z long
Replacements byte>.Dictionary
Результат void

Save() публичный метод

public Save ( ) : bool
Результат bool

Save() публичный метод

public Save ( string filename ) : bool
filename string
Результат bool

SaveAll() публичный метод

public SaveAll ( bool cullheightmaps = true ) : void
cullheightmaps bool
Результат void

SaveChunk() публичный метод

public SaveChunk ( Chunk cnk ) : void
cnk Chunk
Результат void

SetArmor() публичный метод

public SetArmor ( ArmorType Armor, short itemID, int Damage, int Count ) : bool
Armor ArmorType
itemID short
Damage int
Count int
Результат bool

SetBlockAt() публичный метод

public SetBlockAt ( Vector3i p, byte id ) : void
p Vector3i
id byte
Результат void

SetBlockAt() публичный метод

public SetBlockAt ( int px, int y, int pz, byte val ) : void
px int
y int
pz int
val byte
Результат void

SetBlockIn() публичный метод

public SetBlockIn ( long CX, long CZ, Vector3i pos, byte type ) : void
CX long
CZ long
pos Vector3i
type byte
Результат void

SetBlockLightAt() публичный метод

public SetBlockLightAt ( int px, int y, int pz, byte val ) : void
px int
y int
pz int
val byte
Результат void

SetChunk() публичный метод

public SetChunk ( Chunk cnk ) : void
cnk Chunk
Результат void

SetChunk() публичный метод

public SetChunk ( long X, long Y, Chunk c ) : void
X long
Y long
c Chunk
Результат void

SetChunkHeightmap() публичный метод

public SetChunkHeightmap ( int X, int Z, double cnk ) : void
X int
Z int
cnk double
Результат void

SetDataAt() публичный метод

public SetDataAt ( int px, int y, int pz, byte p ) : void
px int
y int
pz int
p byte
Результат void

SetDimension() публичный метод

public SetDimension ( int ID ) : void
ID int
Результат void

SetEntity() публичный метод

public SetEntity ( Entity e ) : void
e Entity
Результат void

SetHeightAt() публичный метод

public SetHeightAt ( int x, int z, int h, byte mat ) : void
x int
z int
h int
mat byte
Результат void

SetInventory() публичный метод

public SetInventory ( int slot, short itemID, int Damage, int Count ) : bool
slot int
itemID short
Damage int
Count int
Результат bool

SetSkyLightAt() публичный метод

public SetSkyLightAt ( int px, int y, int pz, byte val ) : void
px int
y int
pz int
val byte
Результат void

SetTileEntity() публичный метод

public SetTileEntity ( TileEntity e ) : void
e OpenMinecraft.TileEntities.TileEntity
Результат void

UnloadChunks() публичный метод

public UnloadChunks ( ) : void
Результат void

Описание свойств

_CACHE_ENABLED публичное свойство

public bool _CACHE_ENABLED
Результат bool

_DEBUG публичное свойство

public bool _DEBUG
Результат bool