Package de.Keyle.MyPet.api.skill.skills
Enum Class Behavior.BehaviorMode
- All Implemented Interfaces:
Serializable,Comparable<Behavior.BehaviorMode>,Constable
- Enclosing interface:
Behavior
Enumerates the possible pet behavior modes. Each mode changes the pet's
AI target selection logic.
-
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 attacks everything within 15 blocks of its owner.The pet attacks other pets that are also inDuel, within 5 blocks.The pet attacks every monster within 15 blocks of its owner.The pet does not fight, even when it is attacked.Behaves like a normal tamed wolf.LikeNormal, except the pet does not attack players or their pets. -
Method Summary
Modifier and TypeMethodDescriptionstatic Behavior.BehaviorModeReturns the enum constant of this class with the specified name.static Behavior.BehaviorMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Normal
Behaves like a normal tamed wolf. Always available, even without the skill. -
Friendly
The pet does not fight, even when it is attacked. -
Aggressive
The pet attacks everything within 15 blocks of its owner. -
Raid
LikeNormal, except the pet does not attack players or their pets. -
Farm
The pet attacks every monster within 15 blocks of its owner. -
Duel
The pet attacks other pets that are also inDuel, within 5 blocks.
-
-
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
-