FoundryAddon

interface FoundryAddon

An addon that Foundry can load from a JAR in its packs folder.

Properties

Link copied to clipboard
abstract val id: String

The addon's unique ID. It must match the id in the addon's foundry.yml.

Link copied to clipboard
abstract val version: String

Version string shown in the server log after the addon loads.

Functions

Link copied to clipboard
open fun onDisable()

Optional place to release resources when the addon is disabled.

Link copied to clipboard
abstract fun onEnable(api: FoundryAPI)

Called after Foundry creates the addon. Register the addon's abilities here.