[This is preliminary documentation and is subject to change.]
Static class with definitions of Minecraft color codes,
parsers, converters, and utilities.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)
Syntax
| C# |
public static class Color
Members
| All Members | Fields | Properties | Methods |
| Member | Description | |
|---|---|---|
| Announcement | Color of announcements, server announcements. | |
| AnnouncementDefault | Default color of announcements, server announcements. Green. | |
| Aqua | ||
| Black | ||
| Blue | ||
| ColorNames | List of color names indexed by their id. | |
| GetName(Char) | Looks up color name for the given character color code. Codes are 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. | |
| GetName(Int32) | Looks up color name for the given numeric color code. | |
| GetName(String) | Looks up color name for the given color string.
Accepts any input format that is recognized by Color.Parse(String). | |
| Gray | ||
| Green | ||
| Help | Color of help messages, /help. | |
| HelpDefault | Default color of help messages, /help. Lime. | |
| IRC | Color of IRC chat. | |
| IRCDefault | Default color of IRC chat. Purple. | |
| IrcToMinecraftColors(String) | Replaces IRC color codes with equivalent Minecraft color codes, in the given string.
Opposite of MinecraftToIrcColors method. | |
| IrcToMinecraftColors(StringBuilder) | Replaces IRC color codes with equivalent Minecraft color codes, in the given StringBuilder.
Opposite of MinecraftToIrcColors method. | |
| IsColorCode(Char) | Checks whether a color code is valid. Both uppercase and lowercase digits are accepted.
Both standard (0-F) and fCraft-specific (H, I, M, P, R, S, W, and Y) color codes are accepted. | |
| IsStandardColorCode(Char) | Checks whether a color code is valid (is a recognized standard color code).
Standard color codes are hexadecimal digits. Both uppercase and lowercase digits are accepted.
Does not recognize fCraft-specific color codes. | |
| Lime | ||
| Magenta | ||
| Maroon | ||
| Me | Color of /me command. | |
| MeDefault | Default color of /me command. Purple. | |
| MinecraftToIrcColors(String) | Replaces Minecraft color codes with equivalent IRC color codes, in the given string.
Opposite of IrcToMinecraftColors method. | |
| MinecraftToIrcColors(StringBuilder) | Replaces Minecraft color codes with equivalent IRC color codes, in the given StringBuilder.
Opposite of IrcToMinecraftColors method. | |
| Navy | ||
| Olive | ||
| Parse(Char) | Converts the given character color code into standard representation (ampersand-color-code).
Codes are 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. | |
| Parse(String) | 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. | |
| PM | Color of personal messages. | |
| PMDefault | Default color of personal messages. Aqua. | |
| Purple | ||
| Red | ||
| Say | Color of say messages (/say) and timer announcements. | |
| SayDefault | Default color of say messages (/say) and timer announcements. Green. | |
| Silver | ||
| StripColors(String) | Strips Minecraft color codes from a given string.
Removes all ampersand-character sequences, including standard, fCraft-specific color codes, and newline codes.
Does not remove percent-color-codes. | |
| SubstituteSpecialColors(String) | Substitutes all fCraft-specific ampersand color codes (like &S/Color.Sys)
with the assigned Minecraft colors (like &E/Color.Yellow).
Strips any unrecognized sequences. Does not replace percent-codes.
Note that LineWrapper itself does this substitution internally. | |
| SubstituteSpecialColors(StringBuilder) | Substitutes all fCraft-specific ampersand color codes (like &S/Color.Sys)
with the assigned Minecraft colors (like &E/Color.Yellow).
Strips any unrecognized sequences. Does not replace percent-codes.
Note that LineWrapper itself does this substitution internally. | |
| Sys | Color of system messages, nickserv, chanserv. | |
| SysDefault | Default color of system messages, nickserv, chanserv. Yellow. | |
| Teal | ||
| Warning | Color of warning messages. | |
| WarningDefault | Default color of warning messages. Red. | |
| White | ||
| Yellow |