C# Class C_Minebot.Classes.Chunk

Show file Open project: umby24/Minebot Class Usage Examples

Public Properties

Property Type Description
blocks byte[]
lighting bool
pbitmap short
sections List
x int

Public Methods

Method Description
Chunk ( int X, int Z, short Pbitmap, short Abitmap, bool inLighting, bool Groundup ) : System
getBlock ( int Bx, int By, int Bz ) : MapBlock
getBlockId ( int Bx, int By, int Bz ) : int
getData ( byte deCompressed ) : byte[]
populate ( ) : void
updateBlock ( int Bx, int By, int Bz, int id ) : void

Private Methods

Method Description
GetPositionInSection ( int blockY ) : int
GetSectionByNumber ( int blockY ) : Section
getXinSection ( int BlockX ) : int
getZinSection ( int BlockZ ) : int

Method Details

Chunk() public method

public Chunk ( int X, int Z, short Pbitmap, short Abitmap, bool inLighting, bool Groundup ) : System
X int
Z int
Pbitmap short
Abitmap short
inLighting bool
Groundup bool
return System

getBlock() public method

public getBlock ( int Bx, int By, int Bz ) : MapBlock
Bx int
By int
Bz int
return MapBlock

getBlockId() public method

public getBlockId ( int Bx, int By, int Bz ) : int
Bx int
By int
Bz int
return int

getData() public method

public getData ( byte deCompressed ) : byte[]
deCompressed byte
return byte[]

populate() public method

public populate ( ) : void
return void

updateBlock() public method

public updateBlock ( int Bx, int By, int Bz, int id ) : void
Bx int
By int
Bz int
id int
return void

Property Details

blocks public property

public byte[] blocks
return byte[]

lighting public property

public bool lighting
return bool

pbitmap public property

public short pbitmap
return short

sections public property

public List
sections
return List

x public property

public int x
return int