public class FileResourcePackProvider extends Object implements ResourcePackProvider
Modifier and Type | Field and Description |
---|---|
private ResourcePackSource |
field_25345 |
private File |
packsFolder |
private static FileFilter |
POSSIBLE_PACK |
Constructor and Description |
---|
FileResourcePackProvider(File packsFolder,
ResourcePackSource resourcePackSource) |
Modifier and Type | Method and Description |
---|---|
private Supplier<ResourcePack> |
createResourcePack(File file) |
void |
register(Consumer<ResourcePackProfile> consumer,
ResourcePackProfile.Factory factory) |
private static final FileFilter POSSIBLE_PACK
private final File packsFolder
private final ResourcePackSource field_25345
public FileResourcePackProvider(File packsFolder, ResourcePackSource resourcePackSource)
public void register(Consumer<ResourcePackProfile> consumer, ResourcePackProfile.Factory factory)
register
in interface ResourcePackProvider
private Supplier<ResourcePack> createResourcePack(File file)