Class BasicStateMachine<T extends IStateMachineTransition<S>,S extends IState>

java.lang.Object
com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine<T,S>
All Implemented Interfaces:
IStateMachine<T,S>
Direct Known Subclasses:
TickRateStateMachine

public class BasicStateMachine<T extends IStateMachineTransition<S>,S extends IState> extends Object implements IStateMachine<T,S>
Basic statemachine class, can be used for any Transition typed which extends the transition interface. It contains the current state and a hashmap for events and transitions, which are the minimal requirements to have a working statemachine.