Class CompositePackResources
java.lang.Object
net.minecraft.server.packs.CompositePackResources
- All Implemented Interfaces:
AutoCloseable, PackResources, IPackResourcesExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface PackResources
PackResources.ResourceOutput -
Field Summary
FieldsFields inherited from interface PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
ConstructorsConstructorDescriptionCompositePackResources(PackResources primaryPackResources, List<PackResources> overlayPackResources) -
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()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPackResourcesExtension
isHiddenMethods inherited from interface PackResources
knownPackInfo, packId
-
Field Details
-
-
packResourcesStack
-
-
Constructor Details
-
CompositePackResources
public CompositePackResources(PackResources primaryPackResources, List<PackResources> overlayPackResources)
-
-
Method Details
-
getRootResource
- Specified by:
getRootResourcein interfacePackResources
-
getResource
- Specified by:
getResourcein interfacePackResources
-
listResources
public void listResources(PackType type, String namespace, String directory, PackResources.ResourceOutput output) - Specified by:
listResourcesin interfacePackResources
-
getNamespaces
- Specified by:
getNamespacesin interfacePackResources
-
getMetadataSection
public <T> @Nullable T getMetadataSection(MetadataSectionType<T> metadataSerializer) throws IOException - Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
location
- Specified by:
locationin interfacePackResources
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePackResources
-