getAddon

abstract fun getAddon(@NotNull id: @NotNull String): Optional<AddonContainer>

Gets an AddonContainer associated with the addon id.

Return

An optional containing the addon container if available, or an empty optional if the addon is not loaded.

Parameters

id

The id of the addon to get.


abstract fun getAddon(@NotNull instance: @NotNull Any): Optional<AddonContainer>

Gets an AddonContainer associated with the instance of an addon.

Return

An optional containing the addon container if available, or an empty optional if the addon is not loaded.

Parameters

instance

The instance of the addon to retrieve.