C# Класс fCraft.ChatColor

Static class with definitions of Minecraft color codes, parsers, converters, and utilities.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ColorNames string>.SortedList

Private Properties

Свойство Тип Описание
GetName string
GetName string
IrcToMinecraftColors string
IsColorCode bool
IsStandardColorCode bool
MinecraftToIrcColors string
Parse string
Parse string
StripColors string
SubstituteSpecialColors string

Открытые методы

Метод Описание
MinecraftToIrcColors ( [ sb ) : void

Replaces Minecraft color codes with equivalent IRC color codes, in the given StringBuilder. Opposite of IrcToMinecraftColors method.

SubstituteSpecialColors ( [ sb ) : void

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.

Приватные методы

Метод Описание
GetName ( [ color ) : string
GetName ( char code ) : string
IrcToMinecraftColors ( [ input ) : string
IsColorCode ( char code ) : bool
IsStandardColorCode ( char code ) : bool
MinecraftToIrcColors ( [ input ) : string
Parse ( [ color ) : string
Parse ( char code ) : string
StripColors ( [ message ) : string
SubstituteSpecialColors ( [ input ) : string

Описание методов

MinecraftToIrcColors() публичный статический Метод

Replaces Minecraft color codes with equivalent IRC color codes, in the given StringBuilder. Opposite of IrcToMinecraftColors method.
sb is null.
public static MinecraftToIrcColors ( [ sb ) : void
sb [ StringBuilder objects, the contents of which will be processed.
Результат void

SubstituteSpecialColors() публичный статический Метод

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.
sb is null.
public static SubstituteSpecialColors ( [ sb ) : void
sb [ StringBuilder, contents of which will be processed.
Результат void

Описание свойств

ColorNames публичное статическое свойство

List of color names indexed by their id.
public static SortedList ColorNames
Результат string>.SortedList