Package org.spongepowered.api.network
Interface ServerSideConnection
-
- All Superinterfaces:
EngineConnection
,RemoteConnection
- All Known Subinterfaces:
ServerPlayerConnection
public interface ServerSideConnection extends EngineConnection
Represents a connection between a minecraft client and server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GameProfile
profile()
Gets the profile of the client.default EngineConnectionSide<? extends ServerSideConnection>
side()
Gets the side this connection is on.-
Methods inherited from interface org.spongepowered.api.network.EngineConnection
close, close
-
Methods inherited from interface org.spongepowered.api.network.RemoteConnection
address, virtualHost
-
-
-
-
Method Detail
-
side
default EngineConnectionSide<? extends ServerSideConnection> side()
Description copied from interface:EngineConnection
Gets the side this connection is on.- Specified by:
side
in interfaceEngineConnection
- Returns:
- The side
-
profile
GameProfile profile()
Gets the profile of the client.- Returns:
- The client's profile
-
-