Class AbstractPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
- All Implemented Interfaces:
AutoCloseable, PackResources, IPackResourcesExtension
- Direct Known Subclasses:
EmptyPackResources, FilePackResources, JarContentsPackResources, PathPackResources
-
Nested Class Summary
Nested classes/interfaces inherited from interface PackResources
PackResources.ResourceOutput -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PackLocationInfoprivate @Nullable ResourceMetadataFields inherited from interface PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @Nullable TgetMetadataSection(MetadataSectionType<T> metadataSerializer) static ResourceMetadataloadMetadata(PackResources packResources) location()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IPackResourcesExtension
isHiddenMethods inherited from interface PackResources
close, getNamespaces, getResource, getRootResource, knownPackInfo, listResources, packId
-
Field Details
-
location
-
metadata
-
-
Constructor Details
-
AbstractPackResources
-
-
Method Details
-
getMetadataSection
public <T> @Nullable T getMetadataSection(MetadataSectionType<T> metadataSerializer) throws IOException - Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
loadMetadata
- Throws:
IOException
-
location
- Specified by:
locationin interfacePackResources
-
toString
-