Class ModFileResourcePack
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraftforge.resource.PathResourcePack
net.minecraftforge.fmllegacy.packs.ModFileResourcePack
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IForgePackResources
@Deprecated(since="1.18",
forRemoval=true)
public class ModFileResourcePack
extends PathResourcePack
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Modifier and TypeFieldDescriptionprivate net.minecraftforge.forgespi.locating.IModFile
Deprecated, for removal: This API element is subject to removal in a future version.private Pack
Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class net.minecraft.server.packs.AbstractPackResources
file
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
ConstructorDescriptionModFileResourcePack(net.minecraftforge.forgespi.locating.IModFile modFile)
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.forgespi.locating.IModFile
Deprecated, for removal: This API element is subject to removal in a future version.protected Path
Deprecated, for removal: This API element is subject to removal in a future version.Implement to return a file or folder path for the given set of path components.toString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class net.minecraftforge.resource.PathResourcePack
close, getName, getNamespaces, getResource, getResource, getResources, getSource, hasResource, hasResource
Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, getRelativePath, getRootResource, logWarning
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
isHidden
-
Field Details
-
modFile
private final net.minecraftforge.forgespi.locating.IModFile modFileDeprecated, for removal: This API element is subject to removal in a future version. -
packInfo
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
ModFileResourcePack
public ModFileResourcePack(net.minecraftforge.forgespi.locating.IModFile modFile)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getModFile
public net.minecraftforge.forgespi.locating.IModFile getModFile()Deprecated, for removal: This API element is subject to removal in a future version. -
resolve
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:PathResourcePack
Implement to return a file or folder path for the given set of path components.- Overrides:
resolve
in classPathResourcePack
- Parameters:
paths
- One or more path strings to resolve. Can include slash-separated paths.- Returns:
- the resulting path, which may not exist.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classPathResourcePack
-