ChatCommandSignedPacket
class
Declaration
[ProtocolSupport(766, 776)]
[Packet("play.toServer.chat_command_signed", PacketPhase.Play, PacketDirection.Serverbound)]
[PacketField("Command", "string")]
[PacketField("Timestamp", "long")]
[PacketField("Salt", "long")]
[PacketField("ArgumentSignatures", "ArgumentSignature[]")]
[PacketField("MessageCount", "int")]
[PacketField("Acknowledged", "byte[]")]
[PacketField("Checksum", "int", Group = "V770_Last", From = 770)]
public sealed record ChatCommandSignedPacket : IPacket<ChatCommandSignedPacket>, IProtocolType<ChatCommandSignedPacket>, IPacket
| Namespace | McProtoNet.Protocol.Packets.Play.Serverbound |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Packets/Play/Serverbound/ChatCommandSignedPacket.cs#L5 ↗ |
Implements: IPacket<ChatCommandSignedPacket>, IProtocolType<ChatCommandSignedPacket>, IPacket
Constructors
ChatCommandSignedPacket(string, long, long, ArgumentSignature[], int, byte[], V770_LastLayer?)
public ChatCommandSignedPacket(string Command, long Timestamp, long Salt, ArgumentSignature[] ArgumentSignatures, int MessageCount, byte[] Acknowledged, ChatCommandSignedPacket.V770_LastLayer? V770_Last = null)
Parameters: Command (String), Timestamp (Int64), Salt (Int64), ArgumentSignatures (ArgumentSignature[]), MessageCount (Int32), Acknowledged (Byte[]), V770_Last (Nullable<V770_LastLayer>)
Properties
| Signature | Description |
|---|---|
byte[] Acknowledged | - |
ArgumentSignature[] ArgumentSignatures | - |
string Command | - |
static PacketIdentity Identity | Gets the identity of the packet type. |
int MessageCount | - |
long Salt | - |
long Timestamp | - |
ChatCommandSignedPacket.V770_LastLayer? V770_Last | - |
Acknowledged
public byte[] Acknowledged { get; init; }
Returns: Byte[]
ArgumentSignatures
public ArgumentSignature[] ArgumentSignatures { get; init; }
Returns: ArgumentSignature[]
Command
public string Command { get; init; }
Returns: String
Identity
public static PacketIdentity Identity { get; }
Gets the identity of the packet type.
Returns: PacketIdentity
MessageCount
public int MessageCount { get; init; }
Returns: Int32
Salt
public long Salt { get; init; }
Returns: Int64
Timestamp
public long Timestamp { get; init; }
Returns: Int64
V770_Last
public ChatCommandSignedPacket.V770_LastLayer? V770_Last { get; init; }
Returns: Nullable<V770_LastLayer>
Methods
| Signature | Description |
|---|---|
static int GetPacketId(int protocolVersion) | - |
static ChatCommandSignedPacket Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type ChatCommandSignedPacket from the specified reader. |
static bool TryGetPacketId(int protocolVersion, out int id) | Attempts to get the wire id of the packet for the specified protocol version. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
GetPacketId(int)
public static int GetPacketId(int protocolVersion)
Parameters: protocolVersion (Int32)
Returns: Int32
Read(ref MinecraftPrimitiveReader, int)
public static ChatCommandSignedPacket Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type ChatCommandSignedPacket from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)
Returns: ChatCommandSignedPacket - The value that was read.
TryGetPacketId(int, out int)
public static bool TryGetPacketId(int protocolVersion, out int id)
Attempts to get the wire id of the packet for the specified protocol version.
Parameters: protocolVersion (Int32), id (Int32)
Returns: Boolean - <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the packet exists on the specified protocol version; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.
Write(MinecraftPrimitiveWriter, int)
public void Write(MinecraftPrimitiveWriter writer, int protocolVersion)
Writes the current value to the specified writer.
Parameters: writer (MinecraftPrimitiveWriter), protocolVersion (Int32)