Package net.minecraft.server.packs
Class FilePackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraft.server.packs.FilePackResources
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IPackResourcesExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.slf4j.Logger
private final String
private final FilePackResources.SharedZipFileAccess
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
ConstructorsConstructorDescriptionFilePackResources
(PackLocationInfo location, FilePackResources.SharedZipFileAccess zipFileAccess, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionprivate String
void
close()
static String
extractNamespace
(String directory, String name) getNamespaces
(PackType type) private static String
getPathFromLocation
(PackType packType, ResourceLocation location) private IoSupplier
<InputStream> getResource
(String resourcePath) getResource
(PackType packType, ResourceLocation location) getRootResource
(String... elements) void
listResources
(PackType packType, String namespace, String path, PackResources.ResourceOutput resourceOutput) Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, 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
-
LOGGER
static final org.slf4j.Logger LOGGER -
zipFileAccess
-
prefix
-
-
Constructor Details
-
Method Details
-
getPathFromLocation
-
getRootResource
-
getResource
-
addPrefix
-
getResource
-
getNamespaces
-
extractNamespace
-
close
public void close() -
listResources
public void listResources(PackType packType, String namespace, String path, PackResources.ResourceOutput resourceOutput)
-