Package net.minecraft.server.packs
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 net.minecraft.server.packs.PackResources
PackResources.ResourceOutput -
Field Summary
FieldsFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
ConstructorsConstructorDescriptionCompositePackResources(PackResources primaryPackResources, List<PackResources> packResourcesStack) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(MetadataSectionSerializer<T> deserializer) getNamespaces(PackType type) getResource(PackType packType, ResourceLocation location) getRootResource(String... elements) voidlistResources(PackType packType, String namespace, String path, PackResources.ResourceOutput resourceOutput) location()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHiddenMethods inherited from interface net.minecraft.server.packs.PackResources
knownPackInfo, packId
-
Field Details
-
-
packResourcesStack
-
-
Constructor Details
-
CompositePackResources
public CompositePackResources(PackResources primaryPackResources, List<PackResources> packResourcesStack)
-
-
Method Details
-
getRootResource
- Specified by:
getRootResourcein interfacePackResources
-
getResource
- Specified by:
getResourcein interfacePackResources
-
listResources
public void listResources(PackType packType, String namespace, String path, PackResources.ResourceOutput resourceOutput) - Specified by:
listResourcesin interfacePackResources
-
getNamespaces
- Specified by:
getNamespacesin interfacePackResources
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> deserializer) 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
-