Class TickingEvent<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>
- All Implemented Interfaces:
ITickingTransition<S>,IStateMachineEvent<S>,IStateMachineTransition<S>
- Direct Known Subclasses:
AIEventTarget,TickingOneTimeEvent
public class TickingEvent<S extends IState>
extends TickingTransition<S>
implements IStateMachineEvent<S>
Event with a tickrate for a statemachine using a tickrate.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTickingEvent(@NotNull IStateEventType eventType, @NotNull IBooleanConditionSupplier condition, @NotNull IStateSupplier<S> nextState, int tickRate) Creates a new TickingEvent -
Method Summary
Methods 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
-
TickingEvent
protected TickingEvent(@NotNull @NotNull IStateEventType eventType, @NotNull @NotNull IBooleanConditionSupplier condition, @NotNull @NotNull IStateSupplier<S> nextState, int tickRate) Creates a new TickingEvent- Parameters:
eventType- The type of the eventcondition- condition when the event appliesnextState- state the event transitions intotickRate- tickrate at which the event is checked
-
-
Method Details
-
getEventType
Get the type of this event- Specified by:
getEventTypein interfaceIStateMachineEvent<S extends IState>- Returns:
- event type
-