Enum Class Pet.SpawnFlags

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

public static enum Pet.SpawnFlags extends Enum<Pet.SpawnFlags>
Result codes returned by Pet.createEntity().
  • Enum Constant Details

    • Success

      public static final Pet.SpawnFlags Success
      The pet was spawned.
    • NoSpace

      public static final Pet.SpawnFlags NoSpace
      There was no room at the target location.
    • AlreadyHere

      public static final Pet.SpawnFlags AlreadyHere
      The pet's entity is already in the world.
    • Dead

      public static final Pet.SpawnFlags Dead
      The pet is dead and still waiting on its respawn timer.
    • Canceled

      public static final Pet.SpawnFlags Canceled
      A listener cancelled the spawn.
    • OwnerDead

      public static final Pet.SpawnFlags OwnerDead
      The owner is dead.
    • Flying

      public static final Pet.SpawnFlags Flying
      The owner is currently flying.
    • Spectator

      public static final Pet.SpawnFlags Spectator
      The owner is in spectator mode.
    • WrongWorldGroup

      public static final Pet.SpawnFlags WrongWorldGroup
      The owner is not in the world group the pet belongs to.
    • NotAllowed

      public static final Pet.SpawnFlags NotAllowed
      Something refused the spawn here, such as a region protection hook.
    • InvalidPosition

      public static final Pet.SpawnFlags InvalidPosition
      The target location is not somewhere a pet can be placed.
    • SourceUnavailable

      public static final Pet.SpawnFlags SourceUnavailable
      A source-driven pet's real creature could not be produced; the summon was refused rather than substituting a plain mob.
  • Method Details

    • values

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