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.