[This is preliminary documentation and is subject to change.]
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.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)
Syntax
| C# |
public sealed class LineWrapper : IEnumerable<Packet>, IEnumerable, IEnumerator<Packet>, IDisposable, IEnumerator
Members
| All Members | Properties | Methods |
| Member | Description | |
|---|---|---|
| Current | ||
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetEnumerator()()()() | ||
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| JoinToString<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>)) | Joins all items in a collection into one comma-separated string.
If the items are not strings, .ToString() is called on them. (Inherited from EnumerableUtil.) | |
| JoinToString<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), String) | Joins all items in a collection into one string separated with the given separator.
If the items are not strings, .ToString() is called on them. (Inherited from EnumerableUtil.) | |
| JoinToString<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), Func<(Of <<'(T, String>)>>)) | Joins all items in a collection into one string separated with the given separator.
A specified string conversion function is called on each item before contactenation. (Inherited from EnumerableUtil.) | |
| JoinToString<(Of <<'(T>)>>)(IEnumerable<(Of <<'(T>)>>), String, Func<(Of <<'(T, String>)>>)) | Joins all items in a collection into one string separated with the given separator.
A specified string conversion function is called on each item before contactenation. (Inherited from EnumerableUtil.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| MoveNext()()()() | ||
| Reset()()()() | ||
| ToString()()()() | (Inherited from Object.) | |
| Wrap(String) | Creates a new line wrapper for a given raw string. | |
| WrapPrefixed(String, String) | Creates a new line wrapper for a given raw string. |