Interface ServerSideConnectionEvent
- All Superinterfaces:
Event
- All Known Subinterfaces:
ServerSideConnectionEvent.Auth,ServerSideConnectionEvent.Configuration,ServerSideConnectionEvent.Disconnect,ServerSideConnectionEvent.Handshake,ServerSideConnectionEvent.Intent,ServerSideConnectionEvent.Join,ServerSideConnectionEvent.Leave,ServerSideConnectionEvent.Login,ServerSideConnectionEvent.ProfileScoped
Represents an event fired during the login and configuration phase.
These events represent the progression of a player
from first authenticating, to being fully loaded in the world.
The events are fired in the following order:
#Intent -> #Auth -> #Handshake -> #Configuration -> #Login -> #Join
Vanilla also allows the client to go back to the configuration phase
where the player is removed from the world before
being put back after the configuration phase ends. The order of the events
is the following:
#Leave -> #Configuration -> #Login -> #Join
Traditionally one could consider a SpawnEntityEvent to be thrown,
but due to the nature of cancellations, a player joining
a world after login would be inadvisable to cancel due to the
inconsistent state of both the player and the player's client.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCalled asynchronously when the client attempts to authenticate against the server.static interfaceCalled when the configuration phase starts.static interfaceCalled when aconnectiondisconnects from the game.static interfaceCalled after the client authenticates and attempts to switch to the configuration phase.static interfaceCalled asynchronously when the client attempts to connect to the server.static interfacestatic interfaceCalled when aplayerleaves from the world.static interfaceCalled after the server finished its configuration with the client.static interfaceRepresents an event that has knowledge about theGameProfilethat is linked to the connection. -
Method Summary
-
Method Details
-
connection
ServerSideConnection connection()Gets theServerSideConnection.- Returns:
- The server side connection
-