Package net.minecraft.resources
Class FolderPackFinder
- java.lang.Object
-
- net.minecraft.resources.FolderPackFinder
-
- All Implemented Interfaces:
IPackFinder
public class FolderPackFinder extends java.lang.Object implements IPackFinder
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
folder
private IPackNameDecorator
packSource
private static java.io.FileFilter
RESOURCEPACK_FILTER
-
Constructor Summary
Constructors Constructor Description FolderPackFinder(java.io.File p_i231420_1_, IPackNameDecorator p_i231420_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.function.Supplier<IResourcePack>
createSupplier(java.io.File p_195733_1_)
void
loadPacks(java.util.function.Consumer<ResourcePackInfo> p_230230_1_, ResourcePackInfo.IFactory p_230230_2_)
-
-
-
Field Detail
-
RESOURCEPACK_FILTER
private static final java.io.FileFilter RESOURCEPACK_FILTER
-
folder
private final java.io.File folder
-
packSource
private final IPackNameDecorator packSource
-
-
Constructor Detail
-
FolderPackFinder
public FolderPackFinder(java.io.File p_i231420_1_, IPackNameDecorator p_i231420_2_)
-
-
Method Detail
-
loadPacks
public void loadPacks(java.util.function.Consumer<ResourcePackInfo> p_230230_1_, ResourcePackInfo.IFactory p_230230_2_)
- Specified by:
loadPacks
in interfaceIPackFinder
-
createSupplier
private java.util.function.Supplier<IResourcePack> createSupplier(java.io.File p_195733_1_)
-
-