Enum Class RconAnswers

java.lang.Object
java.lang.Enum<RconAnswers>
net.minheur.mhm_bitsnbobs.commands.RconAnswers
All Implemented Interfaces:
Serializable, Comparable<RconAnswers>, Constable

public enum RconAnswers extends Enum<RconAnswers>
The RCON answer enum. Suppose to look like an AI. Not working
See Also:
  • Enum Constant Details

  • Field Details

    • key

      private final String key
      The key is what the command will be searching for
    • answer

      private final String answer
      The answer is what he'll be outputing when the key is found.
  • Constructor Details

    • RconAnswers

      private RconAnswers(String key, String answer)
  • Method Details

    • values

      public static RconAnswers[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RconAnswers valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()
      Returns:
      the key of the property
    • getAnswer

      public String getAnswer()
      Returns:
      the answer of the property
    • fromKey

      public static RconAnswers fromKey(String inputKey)
      Used to get the property if the inputKey is correct.
      Parameters:
      inputKey - the work that is being checked.
      Returns:
      the property corresponding to the inputKey.