me.redtea.carcadex.data.bukkitextensions.yaml.Repos Maven / Gradle / Ivy
package me.redtea.carcadex.data.bukkitextensions.yaml;
import me.redtea.carcadex.data.repo.builder.RepoBuilder;
import org.bukkit.plugin.Plugin;
import java.io.File;
public interface Repos {
/**
*
* @return Repo builder
* @param key type
* @param value type
*/
static RepoBuilder builder() {
return RepoBuilder.get();
}
static RepoBuilder builder(Plugin plugin, String foldername) {
return RepoBuilder.of(new File(plugin.getDataFolder(), foldername));
}
static RepoBuilder builder(File file) {
return RepoBuilder.of(file);
}
}