@pumpkin-plugins/bedrock-addon-manager API / plugin / AiGoal
Interface: AiGoal
Defined in: tools/pumpkin-api/src/core.ts:64
Callbacks that describe a custom entity AI goal.
Properties
canStart
canStart: (
server,entity) =>boolean
Defined in: tools/pumpkin-api/src/core.ts:66
Return whether the goal can start for this entity.
Parameters
server
Server
entity
Entity
Returns
boolean
shouldContinue
shouldContinue: (
server,entity) =>boolean
Defined in: tools/pumpkin-api/src/core.ts:68
Return whether the active goal should continue.
Parameters
server
Server
entity
Entity
Returns
boolean
start
start: (
server,entity) =>void
Defined in: tools/pumpkin-api/src/core.ts:70
Start the goal.
Parameters
server
Server
entity
Entity
Returns
void
stop
stop: (
server,entity) =>void
Defined in: tools/pumpkin-api/src/core.ts:72
Stop the goal.
Parameters
server
Server
entity
Entity
Returns
void
tick
tick: (
server,entity) =>void
Defined in: tools/pumpkin-api/src/core.ts:74
Advance the goal by one server tick.
Parameters
server
Server
entity
Entity
Returns
void