Class ResourcePackLoader
java.lang.Object
net.minecraftforge.fmllegacy.packs.ResourcePackLoader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
Modifier and TypeFieldDescriptionprivate static Map<net.minecraftforge.forgespi.locating.IModFile,PathResourcePack>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<PathResourcePack>
getPackFor(String modId)
static Optional<ModFileResourcePack>
getResourcePackFor(String modId)
Deprecated, for removal: This API element is subject to removal in a future version.static <V> Comparator<Map.Entry<String,V>>
static void
loadResourcePacks(PackRepository resourcePacks, BiFunction<Map<net.minecraftforge.forgespi.locating.IModFile,? extends PathResourcePack>,BiConsumer<? super PathResourcePack,Pack>,? extends RepositorySource> packFinder)
Deprecated.static void
loadResourcePacks(PackRepository resourcePacks, Function<Map<net.minecraftforge.forgespi.locating.IModFile,? extends PathResourcePack>,? extends RepositorySource> packFinder)
-
Field Details
-
modResourcePacks
private static Map<net.minecraftforge.forgespi.locating.IModFile,PathResourcePack> modResourcePacks
-
-
Constructor Details
-
ResourcePackLoader
public ResourcePackLoader()
-
-
Method Details
-
getResourcePackFor
@Deprecated(since="1.18", forRemoval=true) public static Optional<ModFileResourcePack> getResourcePackFor(String modId)Deprecated, for removal: This API element is subject to removal in a future version. -
getPackFor
-
loadResourcePacks
@Deprecated public static void loadResourcePacks(PackRepository resourcePacks, BiFunction<Map<net.minecraftforge.forgespi.locating.IModFile,? extends PathResourcePack>,BiConsumer<? super PathResourcePack,Pack>,? extends RepositorySource> packFinder)Deprecated. -
loadResourcePacks
public static void loadResourcePacks(PackRepository resourcePacks, Function<Map<net.minecraftforge.forgespi.locating.IModFile,? extends PathResourcePack>,? extends RepositorySource> packFinder) -
getPackNames
-
getSorter
-