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 voidclose()protected ResourcePackgetDelegate()java.nio.file.FileSystemgetFileSystem()java.lang.StringgetName()static FileSystemResourcePackofPath(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:
getDelegatein classDelegatingResourcePack
-
getFileSystem
public java.nio.file.FileSystem getFileSystem()
-
getName
public java.lang.String getName()
- Overrides:
getNamein classDelegatingResourcePack
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classDelegatingResourcePack- Throws:
java.io.IOException
-
-