Skip to content

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

objectPhaseChangedEvent

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

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

INetworkChannel

The active link, or null when a phase changes before link creation.

public ILink? Link { get; init; }

Property Value

ILink?

Phase

The newly entered protocol phase.

public Phase Phase { get; init; }

Property Value

Phase

Player

The player whose connection phase changed.

public IPlayer Player { get; init; }

Property Value

IPlayer

Side

The connection side that changed phase.

public Side Side { get; init; }

Property Value

Side