Skip to content

Commit 8ef8673

Browse files
committed
Merge branch 'api-12' into api-13
2 parents 75c79a3 + dc9e552 commit 8ef8673

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/main/java/org/spongepowered/api/network/ClientConnectionState.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
*/
3333
public interface ClientConnectionState extends EngineConnectionState {
3434

35+
/**
36+
* Gets the associated {@link ClientSideConnection connection} for
37+
* this connection state.
38+
*
39+
* @return The connection
40+
*/
41+
@Override
42+
ClientSideConnection connection();
43+
3544
/**
3645
* Represents the intent state of the connection
3746
* from the client to the server on the client side.

src/main/java/org/spongepowered/api/network/EngineConnectionState.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
*/
3434
public interface EngineConnectionState {
3535

36+
/**
37+
* Gets the associated {@link EngineConnection connection} for
38+
* this connection state.
39+
*
40+
* @return The connection
41+
*/
42+
EngineConnection connection();
43+
3644
/**
3745
* Gets whatever the connection was established because
3846
* the client was transferred.

src/main/java/org/spongepowered/api/network/ServerConnectionState.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
*/
3232
public interface ServerConnectionState extends EngineConnectionState {
3333

34+
/**
35+
* Gets the associated {@link ServerSideConnection connection} for
36+
* this connection state.
37+
*
38+
* @return The connection
39+
*/
40+
@Override
41+
ServerSideConnection connection();
42+
3443
/**
3544
* Represents a intent state between a minecraft client and server.
3645
*/

0 commit comments

Comments
 (0)