Package mcp.mobius.waila.api


package mcp.mobius.waila.api
The WTHIT API.

Plugin Definitions

To register the plugin instance, create a file called waila_plugins.json or wthit_plugins.json in the root of your mod.


 {
   // the plugin identifier, [namespace:path]
   "yourmodid:plugin": {
      "entrypoints" : {
        // common entrypoint, will always get called
        "common": "package.YourWailaCommonPlugin",

        // client entrypoint, only called on client side
        "client": "package.YourWailaClientPlugin"
      },

      // optional, decide the environment the plugin will loaded, options:
      // client    load plugin only on client and integrated server
      // server    load plugin only on dedicated server
      // *         load plugin on both client and dedicated server
      "side": "*",

      // optional, the required mods that this plugin needs
      "required": {
          "othermodid": "*",    // match any version
          "another_one": ">1.2" // match versions newer than 1.2, see below for more details
      },

      // optional, whether the plugin is enabled by default. defaults to true
      "defaultEnabled": true
   }

   // register multiple plugins!
   "yourmodid:another": {...}
 }
 

Version Ranges

Waila only implements primitive operator (<, <=, >, >=, =) alongside logical and (&&) and or (||) for its version ranges.

See Also: