Package net.minecraft.resources
Interface IResourcePack
- All Superinterfaces:
AutoCloseable
,IForgeResourcePack
- All Known Implementing Classes:
DelegatingResourcePack
,FilePack
,FolderPack
,LegacyResourcePackWrapper
,LegacyResourcePackWrapperV4
,ModFileResourcePack
,ResourcePack
,VanillaPack
,VirtualAssetsPack
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
getMetadataSection
(IMetadataSectionSerializer<T> p_195760_1_) getName()
getNamespaces
(ResourcePackType p_195759_1_) getResource
(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) getResources
(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) getRootResource
(String p_195763_1_) boolean
hasResource
(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_) Methods inherited from interface net.minecraftforge.common.extensions.IForgeResourcePack
isHidden
-
Method Details
-
getRootResource
- Throws:
IOException
-
getResource
InputStream getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) throws IOException - Throws:
IOException
-
getResources
Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) -
hasResource
-
getNamespaces
-
getMetadataSection
- Throws:
IOException
-
getName
String getName() -
close
void close()- Specified by:
close
in interfaceAutoCloseable
-