C# Class OpenMinecraft.Blocks

Afficher le fichier Open project: N3X15/MineEdit

Méthodes publiques

Свойство Type Description
BlockList Block>.Dictionary
Broken bool
BrokenBefore string
TotalImages int
Version string
Water byte

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static CheckForUpdates ( ) : bool
Résultat bool

Clear() public static méthode

Clear all blocks
public static Clear ( ) : void
Résultat void

Find() public static méthode

public static Find ( string p ) : Block
p string
Résultat Block

Get() public static méthode

public static Get ( byte type ) : Block
type byte
Résultat Block

Get() public static méthode

public static Get ( short type ) : Block
type short
Résultat Block

GetColor() public static méthode

public static GetColor ( byte b ) : Color
b byte
Résultat Color

GetImagesLeft() public static méthode

public static GetImagesLeft ( string &image ) : int
image string
Résultat int

Init() public static méthode

Load blocks, update if needed.
public static Init ( ) : void
Résultat void

Save() public static méthode

Save blocks to file.
public static Save ( ) : void
Résultat void

UpdateBlocks() public static méthode

Update blocks from web.
public static UpdateBlocks ( ) : void
Résultat void

UpdateIDs() public static méthode

public static UpdateIDs ( ) : void
Résultat void

UpdateItems() public static méthode

Update itms from web.
public static UpdateItems ( ) : void
Résultat void

Property Details

BlockList public_oe static_oe property

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

Broken public_oe static_oe property

public static bool Broken
Résultat bool

BrokenBefore public_oe static_oe property

Don't allow saving if past this date.
public static string BrokenBefore
Résultat string

TotalImages public_oe static_oe property

Total images for download.
public static int TotalImages
Résultat int

Version public_oe static_oe property

Version number. MMDDYYYY format.
public static string Version
Résultat string

Water public_oe static_oe property

public static byte Water
Résultat byte