Generic API

The Generic API provides a number of unsorted methods that allow you to interface with EtiMod without an API installed. Generally speaking, once requested, it should be cached. The same API is always returned to all mods across the board. API members that change data for a given mod are acquired through other IMC methods.

Calling Methods
Since the Generic API is an instance of, some conversion will be required by you to use it. As outlined on the IMC page, the first  parameter is the name of the method (see Available Methods), the   parameter is the arguments provided to this method, and the   parameter is the return value of the method.

Below, methods will be written like a standard Java method so that you may learn their signature. Calling a method incorrectly will raise an exception.

Since the incoming parameters are ambiguous, custom terminology will be used for a parameter with multiple types. These cases will be written as, which signifies that the parameter can either be a Type1 instance, a Type2 instance, or so on. '''Variant is NOT a literal type, and no attempts should be made to locate or create this type. It's strictly here for the writing.'''

The  method can be used to determine if a player is a spirit.


 * accepts...
 * , which is a literal player entity to check. The player's UUID is acquired for an internal lookup for whether or not a player is a spirit.
 * , which is directly used in the internal lookup.
 * , which is a UUID as a string. It will attempt to cast into UUID, and raise an exception if it fails. It serves the same purpose as above.