Enum Class AIBlockingEventType

java.lang.Object
java.lang.Enum<AIBlockingEventType>
com.minecolonies.api.entity.ai.statemachine.states.AIBlockingEventType
All Implemented Interfaces:
IStateEventType, Serializable, Comparable<AIBlockingEventType>, Constable

public enum AIBlockingEventType extends Enum<AIBlockingEventType> implements IStateEventType
Event types used in statemachine events.
  • Enum Constant Details

    • AI_BLOCKING

      public static final AIBlockingEventType AI_BLOCKING
      Highest priority state for AITargets, if returning true it stops further execution of the AI this tick. Checked regardless of current state
    • STATE_BLOCKING

      public static final AIBlockingEventType STATE_BLOCKING
      High priority state which is checked right before trying to execute a normal state AITarget, if returning true it blocks further executions. Checked regardless of current state
    • EVENT

      public static final AIBlockingEventType EVENT
      Higher priority state used to do one action and then self consume after returning a State. Checked right after AI_BLOCKING_PRIO targets, return true if blocking further executions of AITargets Checked regardless of current state
  • Method Details

    • values

      public static AIBlockingEventType[] 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 AIBlockingEventType 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