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
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
ConstructorDescriptionCompositePackResources
(PackResources p_296246_, List<PackResources> p_294643_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
getMetadataSection
(MetadataSectionSerializer<T> p_295061_) getNamespaces
(PackType p_294708_) getResource
(PackType p_295406_, ResourceLocation p_296382_) getRootResource
(String... p_295316_) boolean
void
listResources
(PackType p_295490_, String p_296164_, String p_294691_, PackResources.ResourceOutput p_295313_) packId()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
getChildren, isHidden
-
Field Details
-
-
packResourcesStack
-
-
Constructor Details
-
CompositePackResources
-
-
Method Details
-
getRootResource
- Specified by:
getRootResource
in interfacePackResources
-
getResource
@Nullable public IoSupplier<InputStream> getResource(PackType p_295406_, ResourceLocation p_296382_) - Specified by:
getResource
in interfacePackResources
-
listResources
public void listResources(PackType p_295490_, String p_296164_, String p_294691_, PackResources.ResourceOutput p_295313_) - Specified by:
listResources
in interfacePackResources
-
getNamespaces
- Specified by:
getNamespaces
in interfacePackResources
-
getMetadataSection
@Nullable public <T> T getMetadataSection(MetadataSectionSerializer<T> p_295061_) throws IOException - Specified by:
getMetadataSection
in interfacePackResources
- Throws:
IOException
-
packId
- Specified by:
packId
in interfacePackResources
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltin
in interfacePackResources
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePackResources
-