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> @Nullable TgetMetadataSection(MetadataSectionType<T> metadataSerializer) getNamespaces(PackType type) @Nullable IoSupplier<InputStream> getResource(PackType type, Identifier location) @Nullable IoSupplier<InputStream> getRootResource(String... path) voidlistResources(PackType type, String namespace, String directory, PackResources.ResourceOutput output) location()default StringpackId()Methods inherited from interface IPackResourcesExtension
isHidden
-
Field Details
-
METADATA_EXTENSION
- See Also:
-
PACK_META
- See Also:
-
-
Method Details
-
getRootResource
-
getResource
-
listResources
void listResources(PackType type, String namespace, String directory, PackResources.ResourceOutput output) -
getNamespaces
-
getMetadataSection
- Throws:
IOException
-
location
PackLocationInfo location() -
packId
-
knownPackInfo
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-