Class OverlayedPackResources
java.lang.Object
net.minecraft.server.packs.OverlayedPackResources
- All Implemented Interfaces:
AutoCloseable, PackMetadataResources, PackResources, PackMetadataResourcesExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface PackResources
PackResources.Filter, PackResources.ResourceOutput -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<PackResources> private final PackMetadataResourcesFields inherited from interface PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
ConstructorsConstructorDescriptionOverlayedPackResources(PackResources primaryPackResources, List<PackResources> overlayPackResources) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> @Nullable TgetMetadataSection(MetadataSectionType<T> metadataSerializer) getNamespaces(PackType type) getResource(PackType type, Identifier location) 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 PackMetadataResourcesExtension
isHiddenMethods inherited from interface PackResources
knownPackInfo, packId
-
Field Details
-
-
packResourcesStack
-
-
Constructor Details
-
OverlayedPackResources
public OverlayedPackResources(PackResources primaryPackResources, List<PackResources> overlayPackResources)
-
-
Method Details
-
getRootResource
- Specified by:
getRootResourcein interfacePackMetadataResources
-
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 interfacePackMetadataResources- Throws:
IOException
-
location
- Specified by:
locationin interfacePackMetadataResources
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePackMetadataResources
-