Package dev.jaxydog.lodestone.impl
Class LoaderEnvironment<T extends Loaded>
java.lang.Object
dev.jaxydog.lodestone.impl.LoaderEnvironment<T>
- Type Parameters:
T- The environment's interface.
A possible loader environment.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionLoaderEnvironment(Class<? extends T> type, Consumer<? super T> load) Creates a newLoaderEnvironment. -
Method Summary
-
Constructor Details
-
LoaderEnvironment
public LoaderEnvironment(Class<? extends T> type, Consumer<? super T> load) throws NullPointerException Creates a newLoaderEnvironment.- Parameters:
type- The associatedLoadedinterface.load- A consumer method that loads the value.- Throws:
NullPointerException- If the given type of loading method are null.- Since:
- 1.0.0
-
-
Method Details
-
getInterface
Returns the associatedLoadedinterface.- Returns:
- The associated
Loadedinterface. - Since:
- 1.0.0
-
isBundled
public boolean isBundled()Returns whether the associatedLoadedinterface is bundled with Lodestone.- Returns:
- Whether the associated
Loadedinterface is bundled with Lodestone. - Since:
- 1.3.0
-
loadValue
Loads the given value.- Parameters:
value- The value to load.- Since:
- 1.0.0
-