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 classstatic classNested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.slf4j.Loggerprivate final Stringprivate final FilePackResources.SharedZipFileAccessFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
ConstructorsConstructorDescriptionFilePackResources(PackLocationInfo pLocation, FilePackResources.SharedZipFileAccess pZipFileAccess, String pPrefix) -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringvoidclose()static StringextractNamespace(String pDirectory, String pName) getNamespaces(PackType pType) private static StringgetPathFromLocation(PackType pPackType, ResourceLocation pLocation) private IoSupplier<InputStream> getResource(String pResourcePath) getResource(PackType pPackType, ResourceLocation pLocation) getRootResource(String... pElements) voidlistResources(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, 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
-
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 pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput)
-