ChatType
class
Declaration
[ProtocolSupport(766, 776)]
public sealed class ChatType : IProtocolType<ChatType>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/ChatType.cs#L6 ↗ |
Implements: IProtocolType<ChatType>
Constructors
| Signature | Description |
|---|---|
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
| Signature | Description |
|---|---|
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
| Signature | Description |
|---|---|
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)