PackedHook

interface PackedHook

A hook to get called for some resource pack save stages.

Functions

Link copied to clipboard
open fun afterSave(pack: ResourcePack)

Called after saving. Keep in mind that there will be no automatic validation after it.

Link copied to clipboard
open fun beforeSave(pack: ResourcePack)

Called before saving, but after copying assets to make sure there are no errors.

Link copied to clipboard

Called after a resource pack element has been added into the pack