Enum Class Pet.PetState

java.lang.Object
java.lang.Enum<Pet.PetState>
de.Keyle.MyPet.api.entity.Pet.PetState
All Implemented Interfaces:
Serializable, Comparable<Pet.PetState>, Constable
Enclosing interface:
Pet

public static enum Pet.PetState extends Enum<Pet.PetState>
Lifecycle state of a pet.
  • Enum Constant Details

    • Dead

      public static final Pet.PetState Dead
      Killed — waiting on respawn timer.
    • Despawned

      public static final Pet.PetState Despawned
      Removed from the world by owner or system (call/chunk-unload).
    • PetState

      public static final Pet.PetState PetState
      Transitional state during spawn pipeline.
    • Here

      public static final Pet.PetState Here
      Alive and present in the world.
  • Method Details

    • values

      public static Pet.PetState[] 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 Pet.PetState 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