Interface ServerSideConnectionEvent
-
- All Superinterfaces:
Event
- All Known Subinterfaces:
ServerSideConnectionEvent.Auth,ServerSideConnectionEvent.Disconnect,ServerSideConnectionEvent.Handshake,ServerSideConnectionEvent.Join,ServerSideConnectionEvent.Login
public interface ServerSideConnectionEvent extends Event
Represents an event fired during the login process.These events represent the progression of a
playerfrom 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
SpawnEntityEventto be thrown, but due to the nature of cancellations, aplayerjoining a world afterloginwould be inadvisable to cancel due to the inconsistent state of both the player and the player's client.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceServerSideConnectionEvent.AuthCalled asynchronously when the client attempts to authenticate against the server.static interfaceServerSideConnectionEvent.DisconnectCalled when aplayerdisconnects from the game.static interfaceServerSideConnectionEvent.HandshakeCalled after the client authenticates and attempts to login to the server.static interfaceServerSideConnectionEvent.Joinstatic interfaceServerSideConnectionEvent.LoginCalled after the server finished its handshake with the client.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServerSideConnectionconnection()Gets theServerSideConnection.default GameProfileprofile()Gets theGameProfileof the client attempting to connect.
-
-
-
Method Detail
-
connection
ServerSideConnection connection()
Gets theServerSideConnection.- Returns:
- The server side connection
-
profile
default GameProfile profile()
Gets theGameProfileof the client attempting to connect.- Returns:
- The client's profile
-
-