Interface IStateMachineTransition<S extends IState>

All Known Subinterfaces:
IStateMachineEvent<S>, IStateMachineOneTimeEvent<S>, ITickingTransition<S>
All Known Implementing Classes:
AIEventTarget, AIOneTimeEventTarget, AITarget, BasicEvent, BasicTransition, TickingEvent, TickingOneTimeEvent, TickingTransition

public interface IStateMachineTransition<S extends IState>
Transition type for Statemachines
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the condition of the transition is fulfilled
    net.minecraft.network.chat.Component
    Get the name of this transition
    Get the next state the Transition goes into
    Get the state of the transition
     
  • Method Details

    • getState

      S getState()
      Get the state of the transition
      Returns:
      state
    • getNextState

      S getNextState()
      Get the next state the Transition goes into
      Returns:
      the next state to go to.
    • checkCondition

      boolean checkCondition()
      Check if the condition of the transition is fulfilled
      Returns:
      true if ready to transition to next state
    • getName

      net.minecraft.network.chat.Component getName()
      Get the name of this transition
      Returns:
      name
    • withName