Intelligent line-wrapper for Minecraft protocol. Splits long messages into 64-character chunks of ASCII. Maintains colors between lines. Wraps at word boundaries and hyphens. Removes invalid characters and color sequences. Supports optional line prefixes for second and consequent lines. This class is implemented as IEnumerable of Packets, so it's usable with foreach() and Linq.
More...
|
| static LineWrapper | Wrap (string message) |
| | Creates a new line wrapper for a given raw string.
|
| |
| static LineWrapper | WrapPrefixed (string prefix, string message) |
| | Creates a new line wrapper for a given raw string.
|
| |
Intelligent line-wrapper for Minecraft protocol. Splits long messages into 64-character chunks of ASCII. Maintains colors between lines. Wraps at word boundaries and hyphens. Removes invalid characters and color sequences. Supports optional line prefixes for second and consequent lines. This class is implemented as IEnumerable of Packets, so it's usable with foreach() and Linq.
| IEnumerator<Packet> fCraft.LineWrapper.GetEnumerator |
( |
| ) |
|
| bool fCraft.LineWrapper.MoveNext |
( |
| ) |
|
| void fCraft.LineWrapper.Reset |
( |
| ) |
|
| static LineWrapper fCraft.LineWrapper.Wrap |
( |
string |
message | ) |
|
|
static |
Creates a new line wrapper for a given raw string.
- Exceptions
-
| ArgumentNullException | message is null. |
| static LineWrapper fCraft.LineWrapper.WrapPrefixed |
( |
string |
prefix, |
|
|
string |
message |
|
) |
| |
|
static |
Creates a new line wrapper for a given raw string.
- Exceptions
-
| ArgumentNullException | prefix or message is null. |
| ArgumentException | prefix length exceeds maximum allowed value (48 characters). |
| Packet fCraft.LineWrapper.Current |
|
getset |
The documentation for this class was generated from the following file: