Package net.minecraft.server.packs
Class PathPackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraft.server.packs.PathPackResources
- All Implemented Interfaces:
- AutoCloseable,- PackResources,- IPackResourcesExtension
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.PackResourcesPackResources.ResourceOutput
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final com.google.common.base.Joinerprivate final PathFields inherited from interface net.minecraft.server.packs.PackResourcesMETADATA_EXTENSION, PACK_META
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()getNamespaces(PackType p_251896_) static IoSupplier<InputStream>getResource(ResourceLocation p_250145_, Path p_251046_) getResource(PackType p_249352_, ResourceLocation p_251715_) getRootResource(String... p_249041_) static voidlistPath(String p_249455_, Path p_249514_, List<String> p_251918_, PackResources.ResourceOutput p_249964_) voidlistResources(PackType p_251452_, String p_249854_, String p_248650_, PackResources.ResourceOutput p_248572_) private static IoSupplier<InputStream>returnFileIfExists(Path p_250506_) static booleanvalidatePath(Path p_249579_) Methods inherited from class net.minecraft.server.packs.AbstractPackResourcesgetMetadataFromStream, getMetadataSection, isBuiltin, packId, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtensionisHidden
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
PATH_JOINERprivate static final com.google.common.base.Joiner PATH_JOINER
- 
root
 
- 
- 
Constructor Details- 
PathPackResources
 
- 
- 
Method Details- 
getRootResource
- 
validatePath
- 
getResource@Nullable public IoSupplier<InputStream> getResource(PackType p_249352_, ResourceLocation p_251715_) 
- 
getResource
- 
returnFileIfExists
- 
listResourcespublic void listResources(PackType p_251452_, String p_249854_, String p_248650_, PackResources.ResourceOutput p_248572_) 
- 
listPathpublic static void listPath(String p_249455_, Path p_249514_, List<String> p_251918_, PackResources.ResourceOutput p_249964_) 
- 
getNamespaces
- 
closepublic void close()
 
-