public class ResourcePackLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ResourcePackLoader.IPackInfoFinder<T extends ResourcePackInfo> |
private static class |
ResourcePackLoader.LambdaFriendlyPackFinder |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<ModFile,ModFileResourcePack> |
modResourcePacks |
private static ResourcePackList<?> |
resourcePackList |
Constructor and Description |
---|
ResourcePackLoader() |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<ModFileResourcePack> |
getResourcePackFor(java.lang.String modId) |
static <V> java.util.Comparator<java.util.Map.Entry<java.lang.String,V>> |
getSorter() |
static <T extends ResourcePackInfo> |
loadResourcePacks(ResourcePackList<T> resourcePacks,
java.util.function.BiFunction<java.util.Map<ModFile,? extends ModFileResourcePack>,java.util.function.BiConsumer<? super ModFileResourcePack,T>,ResourcePackLoader.IPackInfoFinder> packFinder) |
private static java.util.Map<ModFile,ModFileResourcePack> modResourcePacks
private static ResourcePackList<?> resourcePackList
public static java.util.Optional<ModFileResourcePack> getResourcePackFor(java.lang.String modId)
public static <T extends ResourcePackInfo> void loadResourcePacks(ResourcePackList<T> resourcePacks, java.util.function.BiFunction<java.util.Map<ModFile,? extends ModFileResourcePack>,java.util.function.BiConsumer<? super ModFileResourcePack,T>,ResourcePackLoader.IPackInfoFinder> packFinder)
public static <V> java.util.Comparator<java.util.Map.Entry<java.lang.String,V>> getSorter()