Class LoaderEnvironment<T extends Loaded>
java.lang.Object
dev.jaxydog.lodestone.impl.LoaderEnvironment<T>
-
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
-
isBundled
-
loadValue
Loads the given value.- Parameters:
value- The value to load.- Since:
- 1.0.0
-