(Consumer<ModFile> fileConsumer)
| 217 | } |
| 218 | |
| 219 | public void forEachModFile(Consumer<ModFile> fileConsumer) |
| 220 | { |
| 221 | modFiles.stream().map(ModFileInfo::getFile).forEach(fileConsumer); |
| 222 | } |
| 223 | |
| 224 | public <T> Stream<T> applyForEachModFile(Function<ModFile, T> function) { |
| 225 | return modFiles.stream().map(ModFileInfo::getFile).map(function); |