C# Class OpenMinecraft.Blocks

Mostrar archivo 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_oe static_oe property

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

Broken public_oe static_oe property

public static bool Broken
return bool

BrokenBefore public_oe static_oe property

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

TotalImages public_oe static_oe property

Total images for download.
public static int TotalImages
return int

Version public_oe static_oe property

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

Water public_oe static_oe property

public static byte Water
return byte