Interface IServerQuery
-
- All Known Implementing Classes:
TeaVMServerQuery
public interface IServerQuery
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IServerQuery.QueryReadyState
-
Field Summary
Fields Modifier and Type Field Description static long
defaultTimeout
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default QueryResponse
awaitResponse()
default QueryResponse
awaitResponse(long timeout)
default boolean
awaitResponseAvailable()
default boolean
awaitResponseAvailable(long timeout)
default byte[]
awaitResponseBinary()
default byte[]
awaitResponseBinary(long timeout)
default boolean
awaitResponseBinaryAvailable()
default boolean
awaitResponseBinaryAvailable(long timeout)
int
binaryResponsesAvailable()
void
close()
byte[]
getBinaryResponse()
EnumServerRateLimit
getRateLimit()
QueryResponse
getResponse()
default boolean
isClosed()
default boolean
isOpen()
IServerQuery.QueryReadyState
readyState()
int
responsesAvailable()
void
send(byte[] bytes)
void
send(java.lang.String str)
default void
send(JSONObject json)
-
-
-
Field Detail
-
defaultTimeout
static final long defaultTimeout
- See Also:
- Constant Field Values
-
-
Method Detail
-
send
void send(java.lang.String str)
-
send
default void send(JSONObject json)
-
send
void send(byte[] bytes)
-
responsesAvailable
int responsesAvailable()
-
getResponse
QueryResponse getResponse()
-
binaryResponsesAvailable
int binaryResponsesAvailable()
-
getBinaryResponse
byte[] getBinaryResponse()
-
readyState
IServerQuery.QueryReadyState readyState()
-
isOpen
default boolean isOpen()
-
isClosed
default boolean isClosed()
-
close
void close()
-
getRateLimit
EnumServerRateLimit getRateLimit()
-
awaitResponseAvailable
default boolean awaitResponseAvailable(long timeout)
-
awaitResponseAvailable
default boolean awaitResponseAvailable()
-
awaitResponseBinaryAvailable
default boolean awaitResponseBinaryAvailable(long timeout)
-
awaitResponseBinaryAvailable
default boolean awaitResponseBinaryAvailable()
-
awaitResponse
default QueryResponse awaitResponse(long timeout)
-
awaitResponse
default QueryResponse awaitResponse()
-
awaitResponseBinary
default byte[] awaitResponseBinary(long timeout)
-
awaitResponseBinary
default byte[] awaitResponseBinary()
-
-