[This is preliminary documentation and is subject to change.]

Converts the given character color code into standard representation (ampersand-color-code). Accepts 2-character ampersand color codes, single character codes, and color names. Does not accept 2-character percent-codes. All input is case-insensitive. Both standard (0-F) and fCraft-specific (H, I, M, P, R, S, W, and Y) color codes are accepted. Assigned (standard) colors are substituted for fCraft-specific color codes.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
[PureAttribute]
[CanBeNullAttribute]
public static string Parse(
	string color
)

Parameters

color
String
String representation of a color, empty string, or null.

Return Value

If input could be parsed, returns a standard Minecraft ampersand-color-code. If input is an empty string, returns an empty string. If input is null or cannot be parsed, returns null.

See Also