pf1RegisterRegistry: (registry: R) => void

A hook event fired by the system when a registry is initialized. Substitute the Registry part of the hook name with the name of the registry, for example pf1RegisterDamageTypes.

Type Parameters

Type declaration

    • (registry: R): void
    • Parameters

      • registry: R

        The registry that is initialized.

      Returns void

Called by Hooks.callAll

Hooks.on("pf1RegisterDamageTypes", (registry, model) => {
registry.register("my-module", "bleed", {
name: "Bleed",
icon: "ra ra-droplet",
color: "red",
category: "misc",
});
});