# LecternAPI > Static accessor. This is where a plugin gets hold of [[ILecternAPI]]. `gg.lode.lecternapi.LecternAPI` --- ## Signature ```java public class LecternAPI ``` --- ## Methods ### setApi ```java public static void setApi(ILecternAPI api) ``` Called by Lectern itself on startup. Plugins don't call this. | Parameter | Type | |---|---| | `api` | `ILecternAPI` | --- ### getApi ```java public static ILecternAPI getApi() ``` The API instance, or null if Lectern hasn't started yet. Grab it in `onEnable` or later. ---