Package net.minecraft.resources
Interface IResourcePack
-
- All Superinterfaces:
java.lang.AutoCloseable
,IForgeResourcePack
- All Known Implementing Classes:
DelegatingResourcePack
,FilePack
,FolderPack
,LegacyResourcePackWrapper
,LegacyResourcePackWrapperV4
,ModFileResourcePack
,ResourcePack
,VanillaPack
,VirtualAssetsPack
public interface IResourcePack extends java.lang.AutoCloseable, IForgeResourcePack
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
<T> T
getMetadataSection(IMetadataSectionSerializer<T> p_195760_1_)
java.lang.String
getName()
java.util.Set<java.lang.String>
getNamespaces(ResourcePackType p_195759_1_)
java.io.InputStream
getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_)
java.util.Collection<ResourceLocation>
getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
java.io.InputStream
getRootResource(java.lang.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 Detail
-
getRootResource
java.io.InputStream getRootResource(java.lang.String p_195763_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
getResource
java.io.InputStream getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) throws java.io.IOException
- Throws:
java.io.IOException
-
getResources
java.util.Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
-
hasResource
boolean hasResource(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_)
-
getNamespaces
java.util.Set<java.lang.String> getNamespaces(ResourcePackType p_195759_1_)
-
getMetadataSection
@Nullable <T> T getMetadataSection(IMetadataSectionSerializer<T> p_195760_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
getName
java.lang.String getName()
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-