Uses of Class
dev.twilite.client.plugins.BehaviorResult
Packages that use BehaviorResult
-
Uses of BehaviorResult in dev.twilite.client.plugins
Methods in dev.twilite.client.plugins that return BehaviorResultModifier and TypeMethodDescriptionstatic BehaviorResultBehaviorResult.failure()Marks the node as not applicable or failed.static BehaviorResultBehaviorResult.running()Keeps the current branch running and ticks it again on the next server tick.static BehaviorResultBehaviorResult.stopPlugin()Disables the owning plugin after the current behavior tick.static BehaviorResultBehaviorResult.success()Marks the node as complete.BehaviorAction.tick()Runs a behavior leaf for the current server tick.static BehaviorResultBehaviorResult.wait(int ticks) Keeps the current branch running and waits the given number of server ticks.static BehaviorResultBehaviorResult.waitUntil(BooleanSupplier condition, int timeout) Keeps the current branch running until the supplied condition is true or the timeout elapses.static BehaviorResultBehaviorResult.waitUntil(BooleanSupplier condition, BooleanSupplier reset, int timeout) Keeps the current branch running until the supplied condition is true or the timeout elapses, resetting the timeout whenever the reset condition is true.