C# Class OpenMinecraft.IMapHandler

Afficher le fichier Open project: N3X15/MineEdit Class Usage Examples

Méthodes publiques

Méthode Description
AddEntity ( Entity e ) : void
BeginTransaction ( ) : void
CastRay ( Vector3i from, Vector3i direction, List matFilter, bool invert, int &iterations ) : byte

Try to find a block in this direction.

ChunkModified ( long x, long y ) : void
ClearInventory ( ) : void
CommitTransaction ( ) : void
Convolution ( double filter, double divisor, double offset, int X, int Z ) : void

Convolution matrices!

CullChunk ( long X, long Y ) : void
CullUnchanged ( ) : void
DistanceToMaterial ( Vector3i cord, Vector3i vec, byte matidx, bool invert = false ) : double

travel from cord along vec and return how far it was to a point of matidx the distance is returned in number of iterations. If the edge of the map is reached, then return the number of iterations as well. if invert == True, search for anything other than matidx

Erode ( double talus, int iterations, int X, int Z ) : void
ErodeThermal ( double talus, int iterations, int X, int Z ) : void
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 Y, double &min, double &max ) : bool
GetArmor ( ArmorType slot, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
GetBlockAt ( int x, int y, int z ) : byte
GetBlockAt ( long x, long y, long z ) : byte
GetBlockLightAt ( int px, int py, int z ) : byte
GetChunk ( Vector3i ChunkPos ) : Chunk
GetChunk ( long x, long y ) : Chunk
GetChunkCoordsFromFile ( string file, bool fromMapCache = false ) : Vector2i
GetChunkHeightmap ( int X, int Z ) : ].double[
GetDataAt ( int x, int y, int z ) : byte
GetDimensions ( ) : IEnumerable
GetHeightAt ( int x, int z ) : int
GetInventory ( int slot, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
GetLightAt ( int _X, int _Y, int _Z, byte &skyLight, byte &blockLight ) : void
GetMousePos ( Vector3i p, int scale, ViewAngle viewAngle ) : Vector3i
GetOverview ( int CX, int CY, Vector3i pos, int &h, byte &block, int &waterdepth ) : void
GetSkyLightAt ( int px, int py, int z ) : byte
Global2Local ( Vector3d global, int &CX, int &CZ ) : Vector3d
Global2Local ( Vector3i global, int &CX, int &CZ ) : Vector3i
GrowTree ( Random rand, int x, int y, int z ) : void
IsMyFiletype ( string FileName ) : 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 vector3i ) : Vector3i
NewChunk ( long X, long Y ) : Chunk
Populate ( int X, int Z ) : void
RegenerateLighting ( long X, long Z ) : bool
RemoveEntity ( Entity e ) : void
RemoveTileEntity ( TileEntity e ) : void
Repair ( ) : void
ReplaceBlocksIn ( long X, long Y, byte>.Dictionary Replacements ) : void
Save ( ) : bool
Save ( string filename ) : bool
SaveAll ( bool cullheightmaps = true ) : void
SaveChunk ( Chunk chunk ) : void
SetArmor ( ArmorType slot, short itemID, int Damage, int Count ) : bool
SetBlockAt ( int x, int y, int z, byte val ) : void
SetBlockAt ( long x, long y, long z, byte b ) : void
SetBlockLightAt ( int px, int py, int z, byte val ) : void
SetBusy ( string message ) : void
SetChunk ( Chunk c ) : void
SetChunk ( long X, long Y, Chunk c ) : void
SetChunkHeightmap ( int X, int Z, double cnk ) : void
SetDataAt ( int x, int y, int z, byte p ) : void
SetDimension ( int p ) : void
SetEntity ( Entity e ) : void
SetHeightAt ( int x, int z, int h, byte mat ) : void
SetIdle ( ) : void
SetInventory ( int slot, short itemID, int Damage, int Count ) : bool
SetSkyLightAt ( int px, int py, int z, byte val ) : void
SetTileEntity ( TileEntity e ) : void
Silt ( double waterlevel, bool beaches, int X, int Z ) : void

Smooths below-water surfaces and, optionally, adds beaches.

UnloadChunks ( ) : void

Private Methods

Méthode Description
GetPrelimHeightAt ( int x, int z ) : double
HeightmapToVoxelspace ( double hm, byte &b ) : void
SetPrelimHeightAt ( int x, int z, double h ) : void
_GetChunkCoordsFromFile ( string filename ) : Vector2i

Returns chunk location from the chunk's own internal coordinate store. Slow.

Method Details

AddEntity() public abstract méthode

public abstract AddEntity ( Entity e ) : void
e Entity
Résultat void

BeginTransaction() public abstract méthode

public abstract BeginTransaction ( ) : void
Résultat void

CastRay() public méthode

Try to find a block in this direction.
public CastRay ( Vector3i from, Vector3i direction, List matFilter, bool invert, int &iterations ) : byte
from Vector3i
direction Vector3i
matFilter List
invert bool
iterations int
Résultat byte

ChunkModified() public abstract méthode

public abstract ChunkModified ( long x, long y ) : void
x long
y long
Résultat void

ClearInventory() public abstract méthode

public abstract ClearInventory ( ) : void
Résultat void

CommitTransaction() public abstract méthode

public abstract CommitTransaction ( ) : void
Résultat void

Convolution() public méthode

Convolution matrices!
public Convolution ( double filter, double divisor, double offset, int X, int Z ) : void
filter double
divisor double
offset double
X int
Z int
Résultat void

CullChunk() public abstract méthode

public abstract CullChunk ( long X, long Y ) : void
X long
Y long
Résultat void

CullUnchanged() public abstract méthode

public abstract CullUnchanged ( ) : void
Résultat void

DistanceToMaterial() public méthode

travel from cord along vec and return how far it was to a point of matidx the distance is returned in number of iterations. If the edge of the map is reached, then return the number of iterations as well. if invert == True, search for anything other than matidx
public DistanceToMaterial ( Vector3i cord, Vector3i vec, byte matidx, bool invert = false ) : double
cord Vector3i
vec Vector3i
matidx byte
invert bool
Résultat double

Erode() public méthode

public Erode ( double talus, int iterations, int X, int Z ) : void
talus double
iterations int
X int
Z int
Résultat void

ErodeThermal() public méthode

public ErodeThermal ( double talus, int iterations, int X, int Z ) : void
talus double
iterations int
X int
Z int
Résultat void

ExpandFluids() public abstract méthode

public abstract ExpandFluids ( byte fluidID, bool CompleteRegen, ForEachProgressHandler ph ) : int
fluidID byte
CompleteRegen bool
ph ForEachProgressHandler
Résultat int

ForEachCachedChunk() public abstract méthode

public abstract ForEachCachedChunk ( CachedChunkDelegate cmd ) : void
cmd CachedChunkDelegate
Résultat void

ForEachChunk() public abstract méthode

public abstract ForEachChunk ( ChunkIteratorDelegate cmd ) : void
cmd ChunkIteratorDelegate
Résultat void

ForEachChunkFile() public abstract méthode

public abstract ForEachChunkFile ( int Dimension, ChunkFileIteratorDelegate cmd ) : void
Dimension int
cmd ChunkFileIteratorDelegate
Résultat void

ForEachKnownChunk() public abstract méthode

public abstract ForEachKnownChunk ( int Dimension, ChunkIteratorDelegate cmd ) : void
Dimension int
cmd ChunkIteratorDelegate
Résultat void

Generate() public abstract méthode

public abstract Generate ( long X, long Y, double &min, double &max ) : bool
X long
Y long
min double
max double
Résultat bool

GetArmor() public abstract méthode

public abstract GetArmor ( ArmorType slot, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
slot ArmorType
itemID short
Damage short
Count byte
failreason string
Résultat bool

GetBlockAt() public abstract méthode

public abstract GetBlockAt ( int x, int y, int z ) : byte
x int
y int
z int
Résultat byte

GetBlockAt() public méthode

public GetBlockAt ( long x, long y, long z ) : byte
x long
y long
z long
Résultat byte

GetBlockLightAt() public abstract méthode

public abstract GetBlockLightAt ( int px, int py, int z ) : byte
px int
py int
z int
Résultat byte

GetChunk() public abstract méthode

public abstract GetChunk ( Vector3i ChunkPos ) : Chunk
ChunkPos Vector3i
Résultat Chunk

GetChunk() public abstract méthode

public abstract GetChunk ( long x, long y ) : Chunk
x long
y long
Résultat Chunk

GetChunkCoordsFromFile() public méthode

public GetChunkCoordsFromFile ( string file, bool fromMapCache = false ) : Vector2i
file string
fromMapCache bool
Résultat Vector2i

GetChunkHeightmap() public abstract méthode

public abstract GetChunkHeightmap ( int X, int Z ) : ].double[
X int
Z int
Résultat ].double[

GetDataAt() public abstract méthode

public abstract GetDataAt ( int x, int y, int z ) : byte
x int
y int
z int
Résultat byte

GetDimensions() public abstract méthode

public abstract GetDimensions ( ) : IEnumerable
Résultat IEnumerable

GetHeightAt() public abstract méthode

public abstract GetHeightAt ( int x, int z ) : int
x int
z int
Résultat int

GetInventory() public abstract méthode

public abstract GetInventory ( int slot, short &itemID, short &Damage, byte &Count, string &failreason ) : bool
slot int
itemID short
Damage short
Count byte
failreason string
Résultat bool

GetLightAt() public abstract méthode

public abstract GetLightAt ( int _X, int _Y, int _Z, byte &skyLight, byte &blockLight ) : void
_X int
_Y int
_Z int
skyLight byte
blockLight byte
Résultat void

GetMousePos() public abstract méthode

public abstract GetMousePos ( Vector3i p, int scale, ViewAngle viewAngle ) : Vector3i
p Vector3i
scale int
viewAngle ViewAngle
Résultat Vector3i

GetOverview() public abstract méthode

public abstract 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
Résultat void

GetSkyLightAt() public abstract méthode

public abstract GetSkyLightAt ( int px, int py, int z ) : byte
px int
py int
z int
Résultat byte

Global2Local() public abstract méthode

public abstract Global2Local ( Vector3d global, int &CX, int &CZ ) : Vector3d
global Vector3d
CX int
CZ int
Résultat Vector3d

Global2Local() public abstract méthode

public abstract Global2Local ( Vector3i global, int &CX, int &CZ ) : Vector3i
global Vector3i
CX int
CZ int
Résultat Vector3i

GrowTree() public méthode

public GrowTree ( Random rand, int x, int y, int z ) : void
rand Random
x int
y int
z int
Résultat void

IsMyFiletype() public abstract méthode

public abstract IsMyFiletype ( string FileName ) : bool
FileName string
Résultat bool

Load() public abstract méthode

public abstract Load ( ) : void
Résultat void

Load() public abstract méthode

public abstract Load ( string filename ) : void
filename string
Résultat void

LoadChunk() public abstract méthode

public abstract LoadChunk ( long X, long Y ) : void
X long
Y long
Résultat void

Local2Global() public abstract méthode

public abstract Local2Global ( int CX, int CZ, Vector3d local ) : Vector3d
CX int
CZ int
local Vector3d
Résultat Vector3d

Local2Global() public abstract méthode

public abstract Local2Global ( int CX, int CZ, Vector3i vector3i ) : Vector3i
CX int
CZ int
vector3i Vector3i
Résultat Vector3i

NewChunk() public abstract méthode

public abstract NewChunk ( long X, long Y ) : Chunk
X long
Y long
Résultat Chunk

Populate() public abstract méthode

public abstract Populate ( int X, int Z ) : void
X int
Z int
Résultat void

RegenerateLighting() public abstract méthode

public abstract RegenerateLighting ( long X, long Z ) : bool
X long
Z long
Résultat bool

RemoveEntity() public abstract méthode

public abstract RemoveEntity ( Entity e ) : void
e Entity
Résultat void

RemoveTileEntity() public abstract méthode

public abstract RemoveTileEntity ( TileEntity e ) : void
e TileEntity
Résultat void

Repair() public abstract méthode

public abstract Repair ( ) : void
Résultat void

ReplaceBlocksIn() public abstract méthode

public abstract ReplaceBlocksIn ( long X, long Y, byte>.Dictionary Replacements ) : void
X long
Y long
Replacements byte>.Dictionary
Résultat void

Save() public abstract méthode

public abstract Save ( ) : bool
Résultat bool

Save() public abstract méthode

public abstract Save ( string filename ) : bool
filename string
Résultat bool

SaveAll() public abstract méthode

public abstract SaveAll ( bool cullheightmaps = true ) : void
cullheightmaps bool
Résultat void

SaveChunk() public abstract méthode

public abstract SaveChunk ( Chunk chunk ) : void
chunk Chunk
Résultat void

SetArmor() public abstract méthode

public abstract SetArmor ( ArmorType slot, short itemID, int Damage, int Count ) : bool
slot ArmorType
itemID short
Damage int
Count int
Résultat bool

SetBlockAt() public abstract méthode

public abstract SetBlockAt ( int x, int y, int z, byte val ) : void
x int
y int
z int
val byte
Résultat void

SetBlockAt() public méthode

public SetBlockAt ( long x, long y, long z, byte b ) : void
x long
y long
z long
b byte
Résultat void

SetBlockLightAt() public abstract méthode

public abstract SetBlockLightAt ( int px, int py, int z, byte val ) : void
px int
py int
z int
val byte
Résultat void

SetBusy() public méthode

public SetBusy ( string message ) : void
message string
Résultat void

SetChunk() public abstract méthode

public abstract SetChunk ( Chunk c ) : void
c Chunk
Résultat void

SetChunk() public abstract méthode

public abstract SetChunk ( long X, long Y, Chunk c ) : void
X long
Y long
c Chunk
Résultat void

SetChunkHeightmap() public abstract méthode

public abstract SetChunkHeightmap ( int X, int Z, double cnk ) : void
X int
Z int
cnk double
Résultat void

SetDataAt() public abstract méthode

public abstract SetDataAt ( int x, int y, int z, byte p ) : void
x int
y int
z int
p byte
Résultat void

SetDimension() public abstract méthode

public abstract SetDimension ( int p ) : void
p int
Résultat void

SetEntity() public abstract méthode

public abstract SetEntity ( Entity e ) : void
e Entity
Résultat void

SetHeightAt() public abstract méthode

public abstract SetHeightAt ( int x, int z, int h, byte mat ) : void
x int
z int
h int
mat byte
Résultat void

SetIdle() public méthode

public SetIdle ( ) : void
Résultat void

SetInventory() public abstract méthode

public abstract SetInventory ( int slot, short itemID, int Damage, int Count ) : bool
slot int
itemID short
Damage int
Count int
Résultat bool

SetSkyLightAt() public abstract méthode

public abstract SetSkyLightAt ( int px, int py, int z, byte val ) : void
px int
py int
z int
val byte
Résultat void

SetTileEntity() public abstract méthode

public abstract SetTileEntity ( TileEntity e ) : void
e TileEntity
Résultat void

Silt() public méthode

Smooths below-water surfaces and, optionally, adds beaches.
public Silt ( double waterlevel, bool beaches, int X, int Z ) : void
waterlevel double /// A ///
beaches bool /// A ///
X int
Z int
Résultat void

UnloadChunks() public abstract méthode

public abstract UnloadChunks ( ) : void
Résultat void