mineflayer-statemachine
mineflayer-statemachine copied to clipboard
create new defineable methods to customize behaviour of NestedStateMachine
makes NestedStateMachine call onStateMachineEntered()
/ stateMachineUpdate()
/ onStateMachineExited()
respectively on enter / update / exit events if they are defined
this is a breaking change right?
~~no, it changes names of functions with internal logic, which is accounted for by renaming all internal references.~~
no.
i updated it so that instead of moving logic to make room for overwriting methods, it now just calls newly defineable methods if they're present
this now breaks nothing; only additions
@kaduvert, if the bot exits 3 nested states, will it call them all respectively?
yes!