Skip to content

Commit

Permalink
Add EngineConnectionState#connection
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed Jan 7, 2025
1 parent 9b76de6 commit dc9e552
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
*/
public interface ClientConnectionState extends EngineConnectionState {

/**
* Gets the associated {@link ClientSideConnection connection} for
* this connection state.
*
* @return The connection
*/
@Override
ClientSideConnection connection();

/**
* Represents the intent state of the connection
* from the client to the server on the client side.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
*/
public interface EngineConnectionState {

/**
* Gets the associated {@link EngineConnection connection} for
* this connection state.
*
* @return The connection
*/
EngineConnection connection();

/**
* Gets whatever the connection was established because
* the client was transferred.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
*/
public interface ServerConnectionState extends EngineConnectionState {

/**
* Gets the associated {@link ServerSideConnection connection} for
* this connection state.
*
* @return The connection
*/
@Override
ServerSideConnection connection();

/**
* Represents a intent state between a minecraft client and server.
*/
Expand Down

0 comments on commit dc9e552

Please sign in to comment.