Enum Class PetCreateEvent.Source

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

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

    • LEASH

      public static final PetCreateEvent.Source LEASH
      A player leashed a wild mob.
    • ADMIN_COMMAND

      public static final PetCreateEvent.Source ADMIN_COMMAND
      An admin created the pet through a command.
    • PET_SHOP

      public static final PetCreateEvent.Source PET_SHOP
      The pet was bought through the PetShop integration.
    • OTHER

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

    • values

      public static PetCreateEvent.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 PetCreateEvent.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