Interface BedrockListener


public interface BedrockListener
The listener that handles connections from Minecraft: Bedrock Edition.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull String
    Gets the address used for listening for Bedrock connections from.
    int
    Gets the broadcast port that's sent to Bedrock clients with the motd.
    int
    Gets the port used for listening for Bedrock connections from.
    Gets the primary MOTD shown to Bedrock players if a ping passthrough setting is not enabled.
    Gets the secondary MOTD shown to Bedrock players if a ping passthrough setting is not enabled.
    Gets the server name that is sent to Bedrock clients.
  • Method Details

    • address

      @NonNull String address()
      Gets the address used for listening for Bedrock connections from.
      Returns:
      the listening address
    • port

      int port()
      Gets the port used for listening for Bedrock connections from.
      Returns:
      the listening port
    • broadcastPort

      int broadcastPort()
      Gets the broadcast port that's sent to Bedrock clients with the motd. This is the port that Bedrock clients will connect with. It usually does not differ from the listening port.
      Returns:
      the broadcast port
    • primaryMotd

      String primaryMotd()
      Gets the primary MOTD shown to Bedrock players if a ping passthrough setting is not enabled.

      This is the first line that will be displayed.

      Returns:
      the primary MOTD shown to Bedrock players.
    • secondaryMotd

      String secondaryMotd()
      Gets the secondary MOTD shown to Bedrock players if a ping passthrough setting is not enabled.

      This is the second line that will be displayed.

      Returns:
      the secondary MOTD shown to Bedrock players.
    • serverName

      String serverName()
      Gets the server name that is sent to Bedrock clients.
      Returns:
      the server sent to Bedrock clients