Перейти к основному содержимому

ChatTypes

class

Declaration

[ProtocolSupport(766, 776)]
public sealed class ChatTypes : IProtocolType<ChatTypes>
NamespaceMcProtoNet.Protocol
AssemblyMcProtoNet.Protocol.dll
Sourcesrc/McProtoNet.Protocol/Generated/Types/ChatTypes.cs#L5 ↗

Implements: IProtocolType<ChatTypes>

Constructors

SignatureDescription
ChatTypes(ChatType chat, ChatType narration)-

ChatTypes(ChatType, ChatType)

public ChatTypes(ChatType chat, ChatType narration)

Parameters: chat (ChatType), narration (ChatType)

Properties

SignatureDescription
ChatType Chat-
ChatType Narration-

Chat

public ChatType Chat { get; }

Returns: ChatType

Narration

public ChatType Narration { get; }

Returns: ChatType

Methods

SignatureDescription
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)