Package de.rasmusantons.cubiomes
Class NativeLibLoader
java.lang.Object
de.rasmusantons.cubiomes.NativeLibLoader
Extracts the embedded native library from the jar and loads it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanThis will load the library only if it hasn't been loaded yet.
-
Field Details
-
isLoaded
public static boolean isLoaded
-
-
Constructor Details
-
NativeLibLoader
public NativeLibLoader()
-
-
Method Details
-
ensureLoaded
public static boolean ensureLoaded()This will load the library only if it hasn't been loaded yet. This function can be called multiple times.- Returns:
- true, if the library was successfully extracted, otherwise false
-