Package net.minecraftforge.fml.packs
Class ResourcePackLoader
- java.lang.Object
-
- net.minecraftforge.fml.packs.ResourcePackLoader
-
public class ResourcePackLoader extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResourcePackLoader.IPackInfoFinder
private static class
ResourcePackLoader.LambdaFriendlyPackFinder
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<ModFile,ModFileResourcePack>
modResourcePacks
private static ResourcePackList
resourcePackList
-
Constructor Summary
Constructors Constructor Description ResourcePackLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>
getPackNames()
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 void
loadResourcePacks(ResourcePackList resourcePacks, java.util.function.BiFunction<java.util.Map<ModFile,? extends ModFileResourcePack>,java.util.function.BiConsumer<? super ModFileResourcePack,ResourcePackInfo>,ResourcePackLoader.IPackInfoFinder> packFinder)
-
-
-
Field Detail
-
modResourcePacks
private static java.util.Map<ModFile,ModFileResourcePack> modResourcePacks
-
resourcePackList
private static ResourcePackList resourcePackList
-
-
Method Detail
-
getResourcePackFor
public static java.util.Optional<ModFileResourcePack> getResourcePackFor(java.lang.String modId)
-
loadResourcePacks
public static void loadResourcePacks(ResourcePackList resourcePacks, java.util.function.BiFunction<java.util.Map<ModFile,? extends ModFileResourcePack>,java.util.function.BiConsumer<? super ModFileResourcePack,ResourcePackInfo>,ResourcePackLoader.IPackInfoFinder> packFinder)
-
getPackNames
public static java.util.List<java.lang.String> getPackNames()
-
getSorter
public static <V> java.util.Comparator<java.util.Map.Entry<java.lang.String,V>> getSorter()
-
-