Package net.minecraftforge.resource
Class ResourcePackLoader.ModPathPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraftforge.resource.PathPackResources
net.minecraftforge.resource.ResourcePackLoader.ModPathPackResources
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IForgePackResources
- Enclosing class:
- ResourcePackLoader
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Nested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
Field Summary
Modifier and TypeFieldDescriptionprivate final net.minecraftforge.forgespi.locating.IModFile
private final String[]
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
ModifierConstructorDescriptionprivate
ModPathPackResources
(net.minecraftforge.forgespi.locating.IModFile mod, String... prefix) -
Method Summary
Methods inherited from class net.minecraftforge.resource.PathPackResources
close, getNamespaces, getResource, getRootResource, getSource, listResources, toString
Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, isBuiltin, packId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
getChildren, isHidden
-
Field Details
-
mod
private final net.minecraftforge.forgespi.locating.IModFile mod -
prefix
-
-
Constructor Details
-
ModPathPackResources
-
-
Method Details
-
resolve
Description copied from class:PathPackResources
Implement to return a file or folder path for the given set of path components.- Overrides:
resolve
in classPathPackResources
- Parameters:
paths
- One or more path strings to resolve. Can include slash-separated paths.- Returns:
- the resulting path, which may not exist.
-