Class UtilMappings.Loader<T>
java.lang.Object
org.geysermc.geyser.registry.type.UtilMappings.Loader<T>
- All Implemented Interfaces:
RegistryLoader<Function<UtilMappings,T>, T>
- Enclosing class:
- UtilMappings
public static class UtilMappings.Loader<T>
extends Object
implements RegistryLoader<Function<UtilMappings,T>,T>
Simply gets a field of the loaded
UtilMappings object. Instead of re-opening the util mappings file every time a field is loaded,
the mappings are parsed once by UtilMappings.get() and kept in a static variable.
Loader input is a function that extracts the field to get from the UtilMappings object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload(Function<UtilMappings, T> input) Loads an output from the given input.
-
Constructor Details
-
Loader
public Loader()
-
-
Method Details
-
load
Description copied from interface:RegistryLoaderLoads an output from the given input.- Specified by:
loadin interfaceRegistryLoader<Function<UtilMappings,T>, T> - Parameters:
input- the input- Returns:
- the output
-