Package xyz.jpenilla.squaremap.api
Class SquaremapProvider
java.lang.Object
xyz.jpenilla.squaremap.api.SquaremapProvider
Static singleton for conveniently accessing the squaremap API instance.
Prefer using the platform's service manager when available.
-
Method Summary
Modifier and TypeMethodDescriptionget()Gets an instance of theSquaremapservice, throwingIllegalStateExceptionif an instance is not yet loaded.
-
Method Details
-
get
Gets an instance of theSquaremapservice, throwingIllegalStateExceptionif an instance is not yet loaded.Will never return null.
- Returns:
- an api instance
- Throws:
IllegalStateException- if the api is not loaded
-