Package net.minecraftforge.resource
Interface ResourceCacheManager.PathWalkerFactory
- Enclosing class:
- ResourceCacheManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional callback interface to get a walkable stream of paths.
Supports throwing
IOException
if the stream can not be created.-
Method Summary
Modifier and TypeMethodDescriptioncreateWalkingStream
(Path path) Create a new walkable stream of paths.
-
Method Details
-
createWalkingStream
Create a new walkable stream of paths. The stream will be closed by the caller.- Parameters:
path
- The path to create the stream for.- Returns:
- A new stream of paths that are children (potentially several generations deep) of the given path.
- Throws:
IOException
- If the stream can not be created.
-