Defining Extensions
A LimelightExtension
is the basic building block of extending Limelight functionality. Limelight has several built-in extensions, but if you're adding Limelight compatibility or making a Limelight addon mod, you probably want to make your own extension.
Extensions can be individually disabled by the user, so if your addon is adding many unrelated sets of functionality, it is advised to make them separate extensions.
You can define and register an extension like so:
You also need1 to provide a translatable title for the extension (and optionally a description):
en_us.json
{
"limelightExtension.example-extension.my_fun_extension": "My Fun Extension",
"limelightExtension.example-extension.my_fun_extension.desc": "Does very fun stuff!"
}
This results in this Limelight config screen entry:
-
You can also override the
LimelightExtension#name
andLimelightExtension#description
methods. ↩
Last update:
2024-08-30