Enum BehaviorStatus

java.lang.Object
java.lang.Enum<BehaviorStatus>
net.citizensnpcs.api.ai.tree.BehaviorStatus
All Implemented Interfaces:
Serializable, Comparable<BehaviorStatus>, java.lang.constant.Constable

public enum BehaviorStatus extends Enum<BehaviorStatus>
  • Enum Constant Details

    • FAILURE

      public static final BehaviorStatus FAILURE
      Indicates that the Behavior has failed unrecoverably.
    • RESET_AND_REMOVE

      public static final BehaviorStatus RESET_AND_REMOVE
      Indicates that the Behavior should be reset and removed by any parent Composite behavior nodes.
    • RUNNING

      public static final BehaviorStatus RUNNING
      Indicates that the Behavior is still running and should be continued next tick.
    • SUCCESS

      public static final BehaviorStatus SUCCESS
      Indicates that the Behavior has succeeded and can be terminated.
  • Method Details

    • values

      public static BehaviorStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BehaviorStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null