Class AbstractPackMetadataResources
java.lang.Object
net.minecraft.server.packs.AbstractPackMetadataResources
- All Implemented Interfaces:
AutoCloseable, PackMetadataResources, PackMetadataResourcesExtension
- Direct Known Subclasses:
EmptyPackResources, FilePackResources, JarContentsPackResources, PathPackResources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PackLocationInfoprivate @Nullable ResourceMetadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @Nullable TgetMetadataSection(MetadataSectionType<T> metadataSerializer) static ResourceMetadataloadMetadata(PackMetadataResources packResources) location()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PackMetadataResources
close, getRootResourceMethods inherited from interface PackMetadataResourcesExtension
isHidden
-
Field Details
-
location
-
metadata
-
-
Constructor Details
-
AbstractPackMetadataResources
-
-
Method Details
-
getMetadataSection
public <T> @Nullable T getMetadataSection(MetadataSectionType<T> metadataSerializer) throws IOException - Specified by:
getMetadataSectionin interfacePackMetadataResources- Throws:
IOException
-
loadMetadata
- Throws:
IOException
-
location
- Specified by:
locationin interfacePackMetadataResources
-
toString
-