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 ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TgetMetadataSection(MetadataSectionSerializer<T> deserializer) getNamespaces(PackType type) @Nullable IoSupplier<InputStream> getResource(PackType type, ResourceLocation location) @Nullable IoSupplier<InputStream> getRootResource(String... paths) voidlistResources(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, location, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
packMeta
-
-
Constructor Details
-
EmptyPackResources
-
-
Method Details
-
getMetadataSection
- Specified by:
getMetadataSectionin interfacePackResources- Overrides:
getMetadataSectionin 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)
-