Class PhaseChangedEvent
Namespace: Void.Minecraft.Events
Assembly: Void.Minecraft.dll
Signals that one side of a player’s Minecraft connection entered a new protocol phase.
public record PhaseChangedEvent : IScopedEvent, IEvent, IEquatable<PhaseChangedEvent>Inheritance
Implements
IScopedEvent, IEvent, IEquatable<PhaseChangedEvent>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
PhaseChangedEvent(ILink?, IPlayer, Side, INetworkChannel, Phase)
Signals that one side of a player’s Minecraft connection entered a new protocol phase.
public PhaseChangedEvent(ILink? Link, IPlayer Player, Side Side, INetworkChannel Channel, Phase Phase)Parameters
Link ILink?
The active link, or null when a phase changes before link creation.
Player IPlayer
The player whose connection phase changed.
Side Side
The connection side that changed phase.
Channel INetworkChannel
The channel associated with that side.
Phase Phase
The newly entered protocol phase.
Properties
Channel
The channel associated with that side.
public INetworkChannel Channel { get; init; }Property Value
Link
The active link, or null when a phase changes before link creation.
public ILink? Link { get; init; }Property Value
Phase
The newly entered protocol phase.
public Phase Phase { get; init; }Property Value
Player
The player whose connection phase changed.
public IPlayer Player { get; init; }Property Value
Side
The connection side that changed phase.
public Side Side { get; init; }