Package net.minecraft.server.packs
Interface PackResources
- All Superinterfaces:
AutoCloseable,IPackResourcesExtension
- All Known Implementing Classes:
AbstractPackResources,CompositePackResources,EmptyPackResources,FilePackResources,JarContentsPackResources,PathPackResources,VanillaPackResources
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(MetadataSectionType<T> pType) getNamespaces(PackType pType) getResource(PackType pPackType, ResourceLocation pLocation) getRootResource(String... pElements) voidlistResources(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) location()default StringpackId()Methods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHidden
-
Field Details
-
METADATA_EXTENSION
- See Also:
-
PACK_META
- See Also:
-
-
Method Details
-
getRootResource
-
getResource
-
listResources
void listResources(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) -
getNamespaces
-
getMetadataSection
- Throws:
IOException
-
location
PackLocationInfo location() -
packId
-
knownPackInfo
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-