Interface AdaptedServerPing

  • All Superinterfaces:
    Handle

    public interface AdaptedServerPing
    extends Handle
    • Method Detail

      • getDescriptionComponent

        net.kyori.adventure.text.Component getDescriptionComponent()
        Gets the component of the description (aka MOTD)
        Returns:
        A compoent of the description
      • getPlainDescription

        java.lang.String getPlainDescription()
        Gets the description (aka MOTD) stripped of any color or styling
        Returns:
        The description, but no colors
      • getPlayerCount

        int getPlayerCount()
        Gets the number of players currently online
        Returns:
        The number of players online
      • getMaxPlayers

        int getMaxPlayers()
        Gets the maximum number of players that can join.
        Returns:
        The maximum number of players that can join
      • addPlayer

        void addPlayer()
        Temporarly adds one player to the player count
      • getFetchedTime

        long getFetchedTime()
        Returns an epoch timestamp of when this ping was sent.
        Returns:
        A long of an epoch timestamp