C# Class OpenMinecraft.Blocks

Show file Open project: N3X15/MineEdit

Public Properties

Property Type Description
BlockList Block>.Dictionary
Broken bool
BrokenBefore string
TotalImages int
Version string
Water byte

Public Methods

Method Description
CheckForUpdates ( ) : bool
Clear ( ) : void

Clear all blocks

Find ( string p ) : Block
Get ( byte type ) : Block
Get ( short type ) : Block
GetColor ( byte b ) : Color
GetImagesLeft ( string &image ) : int
Init ( ) : void

Load blocks, update if needed.

Save ( ) : void

Save blocks to file.

UpdateBlocks ( ) : void

Update blocks from web.

UpdateIDs ( ) : void
UpdateItems ( ) : void

Update itms from web.

Private Methods

Method Description
GetColorFor ( Block b ) : Color

Get average color of the image for this block

GetQuestionMark ( ) : Bitmap
SetupLighting ( ) : void

From Moose

VersionToTicks ( string v ) : long

Method Details

CheckForUpdates() public static method

public static CheckForUpdates ( ) : bool
return bool

Clear() public static method

Clear all blocks
public static Clear ( ) : void
return void

Find() public static method

public static Find ( string p ) : Block
p string
return Block

Get() public static method

public static Get ( byte type ) : Block
type byte
return Block

Get() public static method

public static Get ( short type ) : Block
type short
return Block

GetColor() public static method

public static GetColor ( byte b ) : Color
b byte
return Color

GetImagesLeft() public static method

public static GetImagesLeft ( string &image ) : int
image string
return int

Init() public static method

Load blocks, update if needed.
public static Init ( ) : void
return void

Save() public static method

Save blocks to file.
public static Save ( ) : void
return void

UpdateBlocks() public static method

Update blocks from web.
public static UpdateBlocks ( ) : void
return void

UpdateIDs() public static method

public static UpdateIDs ( ) : void
return void

UpdateItems() public static method

Update itms from web.
public static UpdateItems ( ) : void
return void

Property Details

BlockList public static property

All known blocks and items, indexed by Minecraft ID number.
public static Dictionary BlockList
return Block>.Dictionary

Broken public static property

public static bool Broken
return bool

BrokenBefore public static property

Don't allow saving if past this date.
public static string BrokenBefore
return string

TotalImages public static property

Total images for download.
public static int TotalImages
return int

Version public static property

Version number. MMDDYYYY format.
public static string Version
return string

Water public static property

public static byte Water
return byte