Class AIEventTarget<S extends IState>
java.lang.Object
com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicTransition<S>
com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickingTransition<S>
com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickingEvent<S>
com.minecolonies.api.entity.ai.statemachine.AIEventTarget<S>
- All Implemented Interfaces:
ITickingTransition<S>,IStateMachineEvent<S>,IStateMachineTransition<S>
Special AI Targets which are used for preState cecks and limits. They are checked before normal AITargets always
-
Constructor Summary
ConstructorsConstructorDescriptionAIEventTarget(@NotNull AIBlockingEventType eventType, @NotNull IBooleanConditionSupplier predicate, @NotNull IStateSupplier<S> action, int tickRate) Construct a special target.AIEventTarget(@NotNull AIBlockingEventType eventType, @NotNull IBooleanConditionSupplier predicate, S IAIState, int tickRate) AIEventTarget(@NotNull AIBlockingEventType eventType, @NotNull IStateSupplier<S> action, int tickRate) -
Method Summary
Methods inherited from class com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickingEvent
getEventTypeMethods inherited from class com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickingTransition
countdownTicksToUpdate, getTickRate, setTickRate, setTicksToUpdateMethods inherited from class com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicTransition
checkCondition, getMethodName, getName, getNextState, getState, withNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.entity.ai.statemachine.transitions.IStateMachineTransition
checkCondition, getName, getNextState, getState, withName
-
Constructor Details
-
AIEventTarget
public AIEventTarget(@NotNull @NotNull AIBlockingEventType eventType, @NotNull @NotNull IBooleanConditionSupplier predicate, @NotNull @NotNull IStateSupplier<S> action, int tickRate) Construct a special target.- Parameters:
eventType- the AISpecial Statepredicate- boolean predicate to check before executin the actionaction- action supplier which returns the next eventTypetickRate- tickRate at which this target should be called
-
AIEventTarget
public AIEventTarget(@NotNull @NotNull AIBlockingEventType eventType, @NotNull @NotNull IBooleanConditionSupplier predicate, @NotNull S IAIState, int tickRate) -
AIEventTarget
public AIEventTarget(@NotNull @NotNull AIBlockingEventType eventType, @NotNull @NotNull IStateSupplier<S> action, int tickRate)
-