Skip to main content

ChatType

class

Declaration

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

Implements: IProtocolType<ChatType>

Constructors

SignatureDescription
ChatType(string translationKey, ChatTypeParameterType[] parameters, NbtTag style)-

ChatType(string, ChatTypeParameterType[], NbtTag)

public ChatType(string translationKey, ChatTypeParameterType[] parameters, NbtTag style)

Parameters: translationKey (String), parameters (ChatTypeParameterType[]), style (NbtTag)

Properties

SignatureDescription
ChatTypeParameterType[] Parameters-
NbtTag Style-
string TranslationKey-

Parameters

public ChatTypeParameterType[] Parameters { get; }

Returns: ChatTypeParameterType[]

Style

public NbtTag Style { get; }

Returns: NbtTag

TranslationKey

public string TranslationKey { get; }

Returns: String

Methods

SignatureDescription
static ChatType Read(ref MinecraftPrimitiveReader reader, int protocolVersion)Reads a value of type ChatType from the specified reader.
void Write(MinecraftPrimitiveWriter writer, int protocolVersion)Writes the current value to the specified writer.

Read(ref MinecraftPrimitiveReader, int)

public static ChatType Read(ref MinecraftPrimitiveReader reader, int protocolVersion)

Reads a value of type ChatType from the specified reader.

Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)

Returns: ChatType - 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)