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.Loggerprivate static final Joinerprivate final PathFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getNamespaces(PackType type) static IoSupplier<InputStream> getResource(ResourceLocation location, Path path) getResource(PackType packType, ResourceLocation location) getRootResource(String... elements) private static booleanisRegularFile(Path path, BasicFileAttributes attributes) static voidlistPath(String namespace, Path namespacePath, List<String> decomposedPath, PackResources.ResourceOutput resourceOutput) voidlistResources(PackType packType, String namespace, String path, PackResources.ResourceOutput resourceOutput) private static IoSupplier<InputStream> returnFileIfExists(Path path) static booleanvalidatePath(Path path) 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
private static final org.slf4j.Logger LOGGER -
PATH_JOINER
-
root
-
-
Constructor Details
-
PathPackResources
-
-
Method Details
-
getRootResource
-
validatePath
-
getResource
-
getResource
-
returnFileIfExists
-
listResources
public void listResources(PackType packType, String namespace, String path, PackResources.ResourceOutput resourceOutput) -
listPath
public static void listPath(String namespace, Path namespacePath, List<String> decomposedPath, PackResources.ResourceOutput resourceOutput) -
isRegularFile
-
getNamespaces
-
close
public void close()
-