Adds callback for the specified mod API.
API name from ModAPI.registerAPI call
callback that is called when API is loaded
shared mod API
Recursively clones object to the new one counting call depth and interrupting copying after 7th recursion call.
an object to be cloned
Optionalrecursive: booleanif true, copies the object recursively
Optionaldepth: numbercurrent recursion state, if > 6, recursion stops; default value is 0
Cloned object, all the properties that are less then 8 in depth, get copied.
Same as ModAPI.cloneObject, but if call depth is more then
6, inserts "stackoverflow" string value otherwise.
Optionalrecursive: booleanOptionaldepth: numberRegisters new API for the mod and invokes mod API callback.
API name used to import it in the other mods
object that is shared with the other mods; may contain other objects, methods, variables, etc.
Optionaldescr: { simple documentation for the mod API
Optionalname?: stringFull name of the API, if not specified, name parameter value is used.
Optionalprops?: objectObject containing descriptions of methods and properties of the API, where keys are methods and properties names and values are their descriptions.
Gets API by it's name. The best approach is to call this method in the function passed as the second parameter of ModAPI.addAPICallback.
API name from ModAPI.registerAPI call
API object if an API with specified was previously registered,
null otherwise.
API name from ModAPI.registerAPI call
Documentation for the specified mod API.
Fetches information about the method or property of mod API.
API name from ModAPI.registerAPI call
property or method name
String description of the method or null if no description was provided by API vendor.
Const InternalmodAPIsCollects registered APIs objects, use ModAPI.requireAPI to directly access required instance.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Module used to share mods' APIs.