GenisysPro
for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
|
Static Public Member Functions | |
static | tokenize ($string) |
static | clean ($string, $removeFormat=true) |
static | toJSON ($string) |
static | toHTML ($string) |
static | toANSI ($string) |
Data Fields | |
const | ESCAPE = "\xc2\xa7" |
const | BLACK = TextFormat::ESCAPE . "0" |
const | DARK_BLUE = TextFormat::ESCAPE . "1" |
const | DARK_GREEN = TextFormat::ESCAPE . "2" |
const | DARK_AQUA = TextFormat::ESCAPE . "3" |
const | DARK_RED = TextFormat::ESCAPE . "4" |
const | DARK_PURPLE = TextFormat::ESCAPE . "5" |
const | GOLD = TextFormat::ESCAPE . "6" |
const | GRAY = TextFormat::ESCAPE . "7" |
const | DARK_GRAY = TextFormat::ESCAPE . "8" |
const | BLUE = TextFormat::ESCAPE . "9" |
const | GREEN = TextFormat::ESCAPE . "a" |
const | AQUA = TextFormat::ESCAPE . "b" |
const | RED = TextFormat::ESCAPE . "c" |
const | LIGHT_PURPLE = TextFormat::ESCAPE . "d" |
const | YELLOW = TextFormat::ESCAPE . "e" |
const | WHITE = TextFormat::ESCAPE . "f" |
const | OBFUSCATED = TextFormat::ESCAPE . "k" |
const | BOLD = TextFormat::ESCAPE . "l" |
const | STRIKETHROUGH = TextFormat::ESCAPE . "m" |
const | UNDERLINE = TextFormat::ESCAPE . "n" |
const | ITALIC = TextFormat::ESCAPE . "o" |
const | RESET = TextFormat::ESCAPE . "r" |
Class used to handle Minecraft chat format, and convert it to other formats like ANSI or HTML
|
static |
Cleans the string from Minecraft codes and ANSI Escape Codes
string | $string | |
bool | $removeFormat |
|
static |
Returns a string with colorized ANSI Escape codes
$string |
|
static |
Returns an HTML-formatted string with colors/markup
string | array | $string |
|
static |
Returns an JSON-formatted string with colors/markup
string | array | $string |
|
static |
Splits the string by Format tokens
string | $string |
const AQUA = TextFormat::ESCAPE . "b" |
const BLACK = TextFormat::ESCAPE . "0" |
const BLUE = TextFormat::ESCAPE . "9" |
const BOLD = TextFormat::ESCAPE . "l" |
const DARK_AQUA = TextFormat::ESCAPE . "3" |
const DARK_BLUE = TextFormat::ESCAPE . "1" |
const DARK_GRAY = TextFormat::ESCAPE . "8" |
const DARK_GREEN = TextFormat::ESCAPE . "2" |
const DARK_PURPLE = TextFormat::ESCAPE . "5" |
const DARK_RED = TextFormat::ESCAPE . "4" |
const ESCAPE = "\xc2\xa7" |
const GOLD = TextFormat::ESCAPE . "6" |
const GRAY = TextFormat::ESCAPE . "7" |
const GREEN = TextFormat::ESCAPE . "a" |
const ITALIC = TextFormat::ESCAPE . "o" |
const LIGHT_PURPLE = TextFormat::ESCAPE . "d" |
const OBFUSCATED = TextFormat::ESCAPE . "k" |
const RED = TextFormat::ESCAPE . "c" |
const RESET = TextFormat::ESCAPE . "r" |
const STRIKETHROUGH = TextFormat::ESCAPE . "m" |
const UNDERLINE = TextFormat::ESCAPE . "n" |
const WHITE = TextFormat::ESCAPE . "f" |
const YELLOW = TextFormat::ESCAPE . "e" |