Package org.geysermc.geyser.api.network
Interface RemoteServer
public interface RemoteServer
Represents the Java server that Geyser is connecting to.
-
Method Summary
Modifier and TypeMethodDescriptionaddress()Gets the IP address of the remote server.@NonNull AuthTypeauthType()Gets theAuthTyperequired by the remote server.Gets the Minecraft version of the remote server.intport()Gets the port of the remote server.intGets the protocol version of the remote server.
-
Method Details
-
address
String address()Gets the IP address of the remote server.- Returns:
- the IP address of the remote server
-
port
int port()Gets the port of the remote server.- Returns:
- the port of the remote server
-
protocolVersion
int protocolVersion()Gets the protocol version of the remote server.- Returns:
- the protocol version of the remote server
-
minecraftVersion
String minecraftVersion()Gets the Minecraft version of the remote server.- Returns:
- the Minecraft version of the remote server
-
authType
@NonNull AuthType authType()Gets theAuthTyperequired by the remote server.- Returns:
- the auth type required by the remote server
-