类 ResourcePackLoader
java.lang.Object
net.neoforged.neoforge.resource.ResourcePackLoader
-
字段概要
字段修饰符和类型字段说明private static final org.apache.logging.log4j.Logger
static final String
private static final PackSelectionConfig
static final String
private static Map
<net.neoforged.neoforgespi.locating.IModFile, Pack.ResourcesSupplier> static final MetadataSectionType
<PackMetadataSection> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static RepositorySource
buildPackFinder
(Map<net.neoforged.neoforgespi.locating.IModFile, Pack.ResourcesSupplier> modResourcePacks, PackType packType) static Pack.ResourcesSupplier
createPackForMod
(net.neoforged.neoforgespi.language.IModFileInfo mf) expandAndRemoveRootChildren
(Stream<Pack> packs, Collection<Pack> availablePacks) private static void
static Optional
<Pack.ResourcesSupplier> getPackFor
(String modId) getPackNames
(PackType packType) private static boolean
hasResourcePack
(net.neoforged.neoforgespi.locating.IModFile mf) private static Pack
private static void
packFinder
(Map<net.neoforged.neoforgespi.locating.IModFile, Pack.ResourcesSupplier> modResourcePacks, Consumer<Pack> packAcceptor, PackType packType) static void
populatePackRepository
(PackRepository resourcePacks, PackType packType, boolean trusted) private static Pack.Metadata
readMeta
(PackType type, PackLocationInfo location, Pack.ResourcesSupplier resources) static Pack
readWithOptionalMeta
(PackLocationInfo location, Pack.ResourcesSupplier resources, PackType type, PackSelectionConfig selectionConfig) static void
reorderNewlyDiscoveredPacks
(Collection<String> set, Collection<String> old, PackRepository packRepository)
-
字段详细资料
-
MOD_DATA_ID
- 另请参阅:
-
MOD_RESOURCES_ID
- 另请参阅:
-
modResourcePacks
private static Map<net.neoforged.neoforgespi.locating.IModFile,Pack.ResourcesSupplier> modResourcePacks -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
MOD_PACK_SELECTION_CONFIG
-
OPTIONAL_FORMAT
-
-
构造器详细资料
-
ResourcePackLoader
public ResourcePackLoader()
-
-
方法详细资料
-
getPackFor
-
populatePackRepository
public static void populatePackRepository(PackRepository resourcePacks, PackType packType, boolean trusted) -
findResourcePacks
private static void findResourcePacks() -
buildPackFinder
public static RepositorySource buildPackFinder(Map<net.neoforged.neoforgespi.locating.IModFile, Pack.ResourcesSupplier> modResourcePacks, PackType packType) -
packFinder
private static void packFinder(Map<net.neoforged.neoforgespi.locating.IModFile, Pack.ResourcesSupplier> modResourcePacks, Consumer<Pack> packAcceptor, PackType packType) -
readWithOptionalMeta
public static Pack readWithOptionalMeta(PackLocationInfo location, Pack.ResourcesSupplier resources, PackType type, PackSelectionConfig selectionConfig) throws IOException - 抛出:
IOException
-
readMeta
private static Pack.Metadata readMeta(PackType type, PackLocationInfo location, Pack.ResourcesSupplier resources) throws IOException - 抛出:
IOException
-
makePack
-
createPackForMod
public static Pack.ResourcesSupplier createPackForMod(net.neoforged.neoforgespi.language.IModFileInfo mf) -
getPackNames
-
hasResourcePack
private static boolean hasResourcePack(net.neoforged.neoforgespi.locating.IModFile mf) -
expandAndRemoveRootChildren
-
reorderNewlyDiscoveredPacks
@Internal public static void reorderNewlyDiscoveredPacks(Collection<String> set, Collection<String> old, PackRepository packRepository)
-