Hooks

interface Hooks(source)

Declarative parking hooks. Obtain them from hooks.

Hooks need the hooks.parking permission and HOOK_PARKING. A veto is a flag the stock side reads; plugin code never runs on a stock thread.

Since

api 1

Functions

Link copied to clipboard
Observes values passing point.
Link copied to clipboard
abstract fun veto(point: HookPoint): Veto
Blocks the stock behaviour at point while active.