Package org.spongepowered.api.network
Interface EngineConnectionState
- All Known Subinterfaces:
ClientConnectionState,ClientConnectionState.Authenticated,ClientConnectionState.Configuration,ClientConnectionState.Game,ClientConnectionState.Intent,ClientConnectionState.Login,EngineConnectionState.Authenticated,EngineConnectionState.Configuration,EngineConnectionState.Game,EngineConnectionState.Intent,EngineConnectionState.Login,ServerConnectionState,ServerConnectionState.Authenticated,ServerConnectionState.Configuration,ServerConnectionState.Game,ServerConnectionState.Intent,ServerConnectionState.Login
public interface EngineConnectionState
Represents the current state of the connection
on the server or client engine.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents the authenticated state of the connection on the server or client engine.static interfaceRepresents the connection state of the connection on the server or client engine.static interfaceRepresents the game state of the connection on the server or client engine.static interfaceRepresents the intent state of the connection on the server or client engine.static interfaceRepresents the login state of the connection on the server or client engine. -
Method Summary
Modifier and TypeMethodDescriptionGets the associatedconnectionfor this connection state.booleanGets whatever the connection was established because the client was transferred.
-
Method Details
-
connection
EngineConnection connection()Gets the associatedconnectionfor this connection state.- Returns:
- The connection
-
transferred
boolean transferred()Gets whatever the connection was established because the client was transferred.- Returns:
trueif the client was transferred.
-