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
Event types used in statemachine events.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHighest priority state for AITargets, if returning true it stops further execution of the AI this tick.Higher priority state used to do one action and then self consume after returning a State.High priority state which is checked right before trying to execute a normal state AITarget, if returning true it blocks further executions. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIBlockingEventTypeReturns the enum constant of this class with the specified name.static AIBlockingEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
-