ChatTypes
class
Declaration
[ProtocolSupport(766, 776)]
public sealed class ChatTypes : IProtocolType<ChatTypes>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/ChatTypes.cs#L5 ↗ |
Implements: IProtocolType<ChatTypes>
Constructors
| Signature | Description |
|---|---|
ChatTypes(ChatType chat, ChatType narration) | - |
ChatTypes(ChatType, ChatType)
public ChatTypes(ChatType chat, ChatType narration)
Parameters: chat (ChatType), narration (ChatType)
Properties
| Signature | Description |
|---|---|
ChatType Chat | - |
ChatType Narration | - |
Chat
public ChatType Chat { get; }
Returns: ChatType
Narration
public ChatType Narration { get; }
Returns: ChatType
Methods
| Signature | Description |
|---|---|
static ChatTypes Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type ChatTypes from the specified reader. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static ChatTypes Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type ChatTypes from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)
Returns: ChatTypes - The value that was read.
Write(MinecraftPrimitiveWriter, int)
public void Write(MinecraftPrimitiveWriter writer, int protocolVersion)
Writes the current value to the specified writer.
Parameters: writer (MinecraftPrimitiveWriter), protocolVersion (Int32)