Goal

interface Goal

A goal that an entity can achieve.

Functions

Link copied to clipboard
abstract fun canUse(): Boolean

Whether this goal can be used by the entity.

Link copied to clipboard
abstract fun shouldStop(): Boolean

Whether this goal should be stopped if it is currently running.

Link copied to clipboard
abstract fun start()

Starts this goal.

Link copied to clipboard
abstract fun stop()

Stops this goal.

Link copied to clipboard
abstract fun tick(time: Long)

Called when the entity this goal is registered to is ticked.