Enum Class Behavior.BehaviorMode

java.lang.Object
java.lang.Enum<Behavior.BehaviorMode>
de.Keyle.MyPet.api.skill.skills.Behavior.BehaviorMode
All Implemented Interfaces:
Serializable, Comparable<Behavior.BehaviorMode>, Constable
Enclosing interface:
Behavior

public static enum Behavior.BehaviorMode extends Enum<Behavior.BehaviorMode>
Enumerates the possible pet behavior modes. Each mode changes the pet's AI target selection logic.
  • Enum Constant Details

    • Normal

      public static final Behavior.BehaviorMode Normal
      Behaves like a normal tamed wolf. Always available, even without the skill.
    • Friendly

      public static final Behavior.BehaviorMode Friendly
      The pet does not fight, even when it is attacked.
    • Aggressive

      public static final Behavior.BehaviorMode Aggressive
      The pet attacks everything within 15 blocks of its owner.
    • Raid

      public static final Behavior.BehaviorMode Raid
      Like Normal, except the pet does not attack players or their pets.
    • Farm

      public static final Behavior.BehaviorMode Farm
      The pet attacks every monster within 15 blocks of its owner.
    • Duel

      public static final Behavior.BehaviorMode Duel
      The pet attacks other pets that are also in Duel, within 5 blocks.
  • Method Details

    • values

      public static Behavior.BehaviorMode[] 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 Behavior.BehaviorMode 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