Enum Class PetRemoveEvent.Source

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

public static enum PetRemoveEvent.Source extends Enum<PetRemoveEvent.Source>
How a pet came to be removed.
  • Enum Constant Details

    • RELEASE

      public static final PetRemoveEvent.Source RELEASE
      The owner released the pet.
    • DEATH

      public static final PetRemoveEvent.Source DEATH
      The pet died and was configured to be deleted on death.
    • ADMIN_COMMAND

      public static final PetRemoveEvent.Source ADMIN_COMMAND
      An admin removed the pet through a command.
    • OTHER

      public static final PetRemoveEvent.Source OTHER
      Any other pathway, including third-party plugins.
  • Method Details

    • values

      public static PetRemoveEvent.Source[] 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 PetRemoveEvent.Source 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