Skip to content

Class AvailableCommandsEvent

Namespace: Void.Minecraft.Events.Chat
Assembly: Void.Minecraft.dll

Signals that a player’s command tree was decoded and is available for inspection or augmentation.

public record AvailableCommandsEvent : IScopedEvent, IEvent, IEquatable<AvailableCommandsEvent>

Inheritance

object ← AvailableCommandsEvent

Implements

IScopedEvent, IEvent, IEquatable<AvailableCommandsEvent>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Signals that a player’s command tree was decoded and is available for inspection or augmentation.

public AvailableCommandsEvent(ILink Link, IPlayer Player, RootCommandNode Node)

Parameters

Link ILink

The link on which the command tree was received.

Player IPlayer

The player receiving the commands.

Node RootCommandNode

The mutable root command node decoded from the server packet.

Properties

CommandsWithUnknownArguments

Gets the commands of with arguments of types the proxy doesn’t know, such as ones mods register. Their arguments are , which reach the player as the server sent them, while the commands themselves can be changed, added to, or removed like any other.

public IReadOnlyList<CommandNode> CommandsWithUnknownArguments { get; }

Property Value

IReadOnlyList<CommandNode>

The link on which the command tree was received.

public ILink Link { get; init; }

Property Value

ILink

Node

The mutable root command node decoded from the server packet.

public RootCommandNode Node { get; init; }

Property Value

RootCommandNode

Player

The player receiving the commands.

public IPlayer Player { get; init; }

Property Value

IPlayer