Package net.minecraft.server.packs
Interface PackResources
- All Superinterfaces:
AutoCloseable,IForgePackResources
- All Known Implementing Classes:
AbstractPackResources,DefaultClientPackResources,DelegatingPackResources,FilePackResources,FolderPackResources,LegacyPackResourcesAdapter,PackResourcesAdapterV4,PathPackResources,VanillaPackResources
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(MetadataSectionSerializer<T> p_10291_) getName()getNamespaces(PackType p_10283_) getResource(PackType p_10289_, ResourceLocation p_10290_) getResources(PackType p_215339_, String p_215340_, String p_215341_, Predicate<ResourceLocation> p_215342_) getRootResource(String p_10294_) booleanhasResource(PackType p_10292_, ResourceLocation p_10293_) Methods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
init, initForNamespace, isHidden
-
Field Details
-
METADATA_EXTENSION
- See Also:
-
PACK_META
- See Also:
-
-
Method Details
-
getRootResource
- Throws:
IOException
-
getResource
- Throws:
IOException
-
getResources
Collection<ResourceLocation> getResources(PackType p_215339_, String p_215340_, String p_215341_, Predicate<ResourceLocation> p_215342_) -
hasResource
-
getNamespaces
-
getMetadataSection
- Throws:
IOException
-
getName
String getName() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-