Package net.neoforged.neoforge.resource
Class EmptyPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.neoforged.neoforge.resource.EmptyPackResources
- 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
getMetadataSection
(MetadataSectionSerializer<T> deserializer) getNamespaces
(PackType type) @Nullable IoSupplier
<InputStream> getResource
(PackType type, ResourceLocation location) @Nullable IoSupplier
<InputStream> getRootResource
(String... paths) void
listResources
(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, location, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHidden
Methods inherited from interface net.minecraft.server.packs.PackResources
knownPackInfo, packId
-
Field Details
-
packMeta
-
-
Constructor Details
-
EmptyPackResources
-
-
Method Details
-
getMetadataSection
- Specified by:
getMetadataSection
in interfacePackResources
- Overrides:
getMetadataSection
in classAbstractPackResources
-
close
public void close() -
listResources
public void listResources(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) -
getNamespaces
-
getRootResource
-
getResource
@Nullable public @Nullable IoSupplier<InputStream> getResource(PackType type, ResourceLocation location)
-