mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2025-07-04 22:46:41 +00:00
Upgrades
This commit is contained in:
@ -0,0 +1,40 @@
|
||||
package me.totalfreedom.config;
|
||||
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
public interface Configuration
|
||||
{
|
||||
YamlConfiguration asYaml();
|
||||
|
||||
void save() throws IOException;
|
||||
|
||||
void load() throws IOException;
|
||||
|
||||
String getFileName();
|
||||
|
||||
File getConfigurationFile();
|
||||
|
||||
String getString(String path);
|
||||
|
||||
Boolean getBoolean(String path);
|
||||
|
||||
<T> List<T> getList(String path);
|
||||
|
||||
List<String> getStringList(String path);
|
||||
|
||||
Integer getInt(String path);
|
||||
|
||||
Long getLong(String path);
|
||||
|
||||
Double getDouble(String path);
|
||||
|
||||
<T> void set(String path, T value);
|
||||
|
||||
<T> T get(String path, Class<T> type);
|
||||
|
||||
<T> T getOrDefault(String path, Class<T> type, T fallback);
|
||||
}
|
Reference in New Issue
Block a user