ChatTypeParameterType
struct
Declaration
[ProtocolSupport(766, 776)]
public readonly record struct ChatTypeParameterType : IProtocolType<ChatTypeParameterType>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Enums/ChatTypeParameterType.cs#L7 ↗ |
Implements: IProtocolType<ChatTypeParameterType>
Constructors
| Signature | Description |
|---|---|
ChatTypeParameterType(int Value) | - |
ChatTypeParameterType(int)
public ChatTypeParameterType(int Value)
Parameters: Value (Int32)
Properties
| Signature | Description |
|---|---|
int Value | - |
Value
public int Value { get; init; }
Returns: Int32
Fields
| Signature | Description |
|---|---|
static ChatTypeParameterType Content | - |
static ChatTypeParameterType Sender | - |
static ChatTypeParameterType Target | - |
Content
public static readonly ChatTypeParameterType Content
Returns: ChatTypeParameterType
Sender
public static readonly ChatTypeParameterType Sender
Returns: ChatTypeParameterType
Target
public static readonly ChatTypeParameterType Target
Returns: ChatTypeParameterType
Methods
| Signature | Description |
|---|---|
static ChatTypeParameterType Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type ChatTypeParameterType from the specified reader. |
string ToString() | Returns the fully qualified type name of this instance. |
string ToString(int protocolVersion) | - |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static ChatTypeParameterType Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type ChatTypeParameterType from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)
Returns: ChatTypeParameterType - The value that was read.
ToString()
public override string ToString()
Returns the fully qualified type name of this instance.
Returns: String - The fully qualified type name.
ToString(int)
public string ToString(int protocolVersion)
Parameters: protocolVersion (Int32)
Returns: String
Write(MinecraftPrimitiveWriter, int)
public void Write(MinecraftPrimitiveWriter writer, int protocolVersion)
Writes the current value to the specified writer.
Parameters: writer (MinecraftPrimitiveWriter), protocolVersion (Int32)
Operators
| Signature | Description |
|---|---|
static explicit operator int(ChatTypeParameterType value) | - |
static explicit operator ChatTypeParameterType(int value) | - |
explicit operator int(ChatTypeParameterType)
public static explicit operator int(ChatTypeParameterType value)
Parameters: value (ChatTypeParameterType)
Returns: Int32
explicit operator ChatTypeParameterType(int)
public static explicit operator ChatTypeParameterType(int value)
Parameters: value (Int32)
Returns: ChatTypeParameterType