File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
src/main/java/org/spongepowered/api/network Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 3232 */
3333public 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.
Original file line number Diff line number Diff line change 3333 */
3434public 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.
Original file line number Diff line number Diff line change 3131 */
3232public 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 */
You can’t perform that action at this time.
0 commit comments