Class FileSystemResourcePack
- java.lang.Object
-
- net.minecraft.modding.api.game.client.resources.ResourcePack
-
- net.minecraft.modding.api.game.client.resources.DelegatingResourcePack
-
- net.minecraft.modding.api.game.client.resources.FileSystemResourcePack
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class FileSystemResourcePack extends DelegatingResourcePack
-
-
Constructor Summary
Constructors Constructor Description FileSystemResourcePack(java.nio.file.FileSystem fileSystem, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected ResourcePack
getDelegate()
java.nio.file.FileSystem
getFileSystem()
java.lang.String
getName()
static FileSystemResourcePack
ofPath(java.nio.file.Path path, java.lang.String name)
-
Methods inherited from class net.minecraft.modding.api.game.client.resources.DelegatingResourcePack
findResources, getDescription, getResource, getResources, getResources, getThumbnail, isLegacyTexturePack
-
-
-
-
Method Detail
-
ofPath
public static FileSystemResourcePack ofPath(java.nio.file.Path path, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
getDelegate
protected ResourcePack getDelegate()
- Overrides:
getDelegate
in classDelegatingResourcePack
-
getFileSystem
public java.nio.file.FileSystem getFileSystem()
-
getName
public java.lang.String getName()
- Overrides:
getName
in classDelegatingResourcePack
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classDelegatingResourcePack
- Throws:
java.io.IOException
-
-