Package net.minecraftforge.fml.packs
Class ModFileResourcePack
java.lang.Object
net.minecraft.resources.ResourcePack
net.minecraftforge.fml.packs.ModFileResourcePack
- All Implemented Interfaces:
AutoCloseable
,IResourcePack
,IForgeResourcePack
-
Field Summary
Fields inherited from class net.minecraft.resources.ResourcePack
file
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getName()
(package private) <T extends ResourcePackInfo>
Tprotected InputStream
getResource
(String name) getResource
(ResourcePackType type, ResourceLocation location) getResources
(ResourcePackType type, String resourceNamespace, String pathIn, int maxDepth, Predicate<String> filter) protected boolean
hasResource
(String name) boolean
hasResource
(ResourcePackType type, ResourceLocation location) (package private) <T extends ResourcePackInfo>
voidsetPackInfo
(T packInfo) Methods inherited from class net.minecraft.resources.ResourcePack
getMetadataFromStream, getMetadataSection, getRelativePath, getRootResource, logWarning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeResourcePack
isHidden
-
Field Details
-
modFile
-
packInfo
-
-
Constructor Details
-
ModFileResourcePack
-
-
Method Details
-
getModFile
-
getName
- Specified by:
getName
in interfaceIResourcePack
- Overrides:
getName
in classResourcePack
-
getResource
- Specified by:
getResource
in classResourcePack
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in classResourcePack
-
getResources
public Collection<ResourceLocation> getResources(ResourcePackType type, String resourceNamespace, String pathIn, int maxDepth, Predicate<String> filter) -
getNamespaces
-
getResource
- Specified by:
getResource
in interfaceIResourcePack
- Overrides:
getResource
in classResourcePack
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in interfaceIResourcePack
- Overrides:
hasResource
in classResourcePack
-
close
public void close() -
setPackInfo
-
getPackInfo
-