Package de.Keyle.MyPet.api.entity
Enum Class Pet.SpawnFlags
- All Implemented Interfaces:
Serializable,Comparable<Pet.SpawnFlags>,Constable
- Enclosing interface:
Pet
Result codes returned by
Pet.createEntity().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe pet's entity is already in the world.A listener cancelled the spawn.The pet is dead and still waiting on its respawn timer.The owner is currently flying.The target location is not somewhere a pet can be placed.There was no room at the target location.Something refused the spawn here, such as a region protection hook.The owner is dead.A source-driven pet's real creature could not be produced; the summon was refused rather than substituting a plain mob.The owner is in spectator mode.The pet was spawned.The owner is not in the world group the pet belongs to. -
Method Summary
Modifier and TypeMethodDescriptionstatic Pet.SpawnFlagsReturns the enum constant of this class with the specified name.static Pet.SpawnFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Success
The pet was spawned. -
NoSpace
There was no room at the target location. -
AlreadyHere
The pet's entity is already in the world. -
Dead
The pet is dead and still waiting on its respawn timer. -
Canceled
A listener cancelled the spawn. -
OwnerDead
The owner is dead. -
Flying
The owner is currently flying. -
Spectator
The owner is in spectator mode. -
WrongWorldGroup
The owner is not in the world group the pet belongs to. -
NotAllowed
Something refused the spawn here, such as a region protection hook. -
InvalidPosition
The target location is not somewhere a pet can be placed.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-