C# 클래스 OpenMinecraft.InfdevHandler

상속: IMapHandler
파일 보기 프로젝트 열기: N3X15/MineEdit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_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