Interface ServerSideConnectionEvent
- All Superinterfaces:
Event
- All Known Subinterfaces:
ServerSideConnectionEvent.Auth
,ServerSideConnectionEvent.Disconnect
,ServerSideConnectionEvent.Handshake
,ServerSideConnectionEvent.Join
,ServerSideConnectionEvent.Login
Represents an event fired during the login process.
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:
#Auth -> #Handshake -> #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
Modifier and TypeInterfaceDescriptionstatic interface
Called asynchronously when the client attempts to authenticate against the server.static interface
Called when aplayer
disconnects from the game.static interface
Called after the client authenticates and attempts to login to the server.static interface
static interface
Called after the server finished its handshake with the client. -
Method Summary
Modifier and TypeMethodDescriptionGets theServerSideConnection
.default GameProfile
profile()
Gets theGameProfile
of the client attempting to connect.
-
Method Details
-
connection
ServerSideConnection connection()Gets theServerSideConnection
.- Returns:
- The server side connection
-
profile
Gets theGameProfile
of the client attempting to connect.- Returns:
- The client's profile
-