C# 클래스 fCraft.ChatColor

Static class with definitions of Minecraft color codes, parsers, converters, and utilities.
파일 보기 프로젝트 열기: fragmer/fCraft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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