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 Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final com.google.common.base.Joiner
private final Path
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getNamespaces
(PackType pType) static IoSupplier
<InputStream> getResource
(ResourceLocation pLocation, Path pPath) getResource
(PackType pPackType, ResourceLocation pLocation) getRootResource
(String... pElements) static void
listPath
(String pNamespace, Path pNamespacePath, List<String> pDecomposedPath, PackResources.ResourceOutput pResourceOutput) void
listResources
(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) private static IoSupplier
<InputStream> returnFileIfExists
(Path pPath) static boolean
validatePath
(Path pPath) 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
private static final org.slf4j.Logger LOGGER -
PATH_JOINER
private static final com.google.common.base.Joiner PATH_JOINER -
root
-
-
Constructor Details
-
PathPackResources
-
-
Method Details
-
getRootResource
-
validatePath
-
getResource
@Nullable public IoSupplier<InputStream> getResource(PackType pPackType, ResourceLocation pLocation) -
getResource
-
returnFileIfExists
-
listResources
public void listResources(PackType pPackType, String pNamespace, String pPath, PackResources.ResourceOutput pResourceOutput) -
listPath
public static void listPath(String pNamespace, Path pNamespacePath, List<String> pDecomposedPath, PackResources.ResourceOutput pResourceOutput) -
getNamespaces
-
close
public void close()
-