Enum Class PetSitEvent.Action

java.lang.Object
java.lang.Enum<PetSitEvent.Action>
de.Keyle.MyPet.api.event.PetSitEvent.Action
All Implemented Interfaces:
Serializable, Comparable<PetSitEvent.Action>, Constable
Enclosing class:
PetSitEvent

public static enum PetSitEvent.Action extends Enum<PetSitEvent.Action>
The state a sit toggle switches the pet into.
  • Enum Constant Details

    • STAY

      public static final PetSitEvent.Action STAY
      The pet is being told to sit and stay put.
    • FOLLOW

      public static final PetSitEvent.Action FOLLOW
      The pet is being told to stand up and follow its owner again.
  • Method Details

    • values

      public static PetSitEvent.Action[] 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 PetSitEvent.Action 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