Package net.minecraftforge.resource
Class ResourcePackLoader
java.lang.Object
net.minecraftforge.resource.ResourcePackLoader
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Map<net.minecraftforge.forgespi.locating.IModFile,
PathPackResources> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PathPackResources
createPackForMod
(net.minecraftforge.forgespi.language.IModFileInfo mf) static Optional<PathPackResources>
getPackFor
(String modId) static <V> Comparator<Map.Entry<String,
V>> static void
loadResourcePacks
(PackRepository resourcePacks, BiFunction<Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources>, BiConsumer<? super PathPackResources, Pack>, ? extends RepositorySource> packFinder) Deprecated.static void
loadResourcePacks
(PackRepository resourcePacks, Function<Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources>, ? extends RepositorySource> packFinder)
-
Field Details
-
modResourcePacks
private static Map<net.minecraftforge.forgespi.locating.IModFile,PathPackResources> modResourcePacks
-
-
Constructor Details
-
ResourcePackLoader
public ResourcePackLoader()
-
-
Method Details
-
getPackFor
-
loadResourcePacks
@Deprecated public static void loadResourcePacks(PackRepository resourcePacks, BiFunction<Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources>, BiConsumer<? super PathPackResources, Pack>, ? extends RepositorySource> packFinder) Deprecated. -
loadResourcePacks
public static void loadResourcePacks(PackRepository resourcePacks, Function<Map<net.minecraftforge.forgespi.locating.IModFile, ? extends PathPackResources>, ? extends RepositorySource> packFinder) -
createPackForMod
@NotNull public static @NotNull PathPackResources createPackForMod(net.minecraftforge.forgespi.language.IModFileInfo mf) -
getPackNames
-
getSorter
-