Package net.minecraft.server.packs
Class CompositePackResources
java.lang.Object
net.minecraft.server.packs.CompositePackResources
- All Implemented Interfaces:
AutoCloseable,PackResources,IForgePackResources
-
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 p_301152_, List<PackResources> p_299588_) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(MetadataSectionSerializer<T> p_301339_) getNamespaces(PackType p_299362_) getResource(PackType p_299283_, ResourceLocation p_299837_) getRootResource(String... p_299314_) booleanvoidlistResources(PackType p_299029_, String p_300961_, String p_297881_, PackResources.ResourceOutput p_298322_) packId()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
getChildren, isHidden
-
Field Details
-
-
packResourcesStack
-
-
Constructor Details
-
CompositePackResources
-
-
Method Details
-
getRootResource
- Specified by:
getRootResourcein interfacePackResources
-
getResource
@Nullable public IoSupplier<InputStream> getResource(PackType p_299283_, ResourceLocation p_299837_) - Specified by:
getResourcein interfacePackResources
-
listResources
public void listResources(PackType p_299029_, String p_300961_, String p_297881_, PackResources.ResourceOutput p_298322_) - Specified by:
listResourcesin interfacePackResources
-
getNamespaces
- Specified by:
getNamespacesin interfacePackResources
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> p_301339_) throws IOException - Specified by:
getMetadataSectionin interfacePackResources- Throws:
IOException
-
packId
- Specified by:
packIdin interfacePackResources
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltinin interfacePackResources
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePackResources
-