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 PackResources
PackResources.ResourceOutput -
Field Summary
FieldsFields inherited from interface PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> @Nullable TgetMetadataSection(MetadataSectionType<T> type) getNamespaces(PackType type) @Nullable IoSupplier<InputStream> getResource(PackType type, Identifier location) @Nullable IoSupplier<InputStream> getRootResource(String... paths) voidlistResources(PackType type, String resourceNamespace, String paths, PackResources.ResourceOutput resourceOutput) Methods inherited from class AbstractPackResources
loadMetadata, location, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IPackResourcesExtension
isHiddenMethods inherited from interface 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
-