Class CoreConfig<T extends CoreConfigFlag>
- java.lang.Object
-
- com.playernguyen.playernguyencore.config.CoreConfig<T>
-
public class CoreConfig<T extends CoreConfigFlag> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CoreConfig(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull java.lang.String name, @NotNull CoreConfigFlag[] chunks, @NotNull java.lang.String parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.File
getCurrentParent()
double
getDouble(T flag)
protected java.io.File
getFile()
protected org.bukkit.configuration.file.FileConfiguration
getFileConfiguration()
int
getInt(T flag)
java.lang.Object
getObject(T flag)
java.lang.String
getString(T flag)
protected void
save()
-
-
-
Constructor Detail
-
CoreConfig
public CoreConfig(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull java.lang.String name, @NotNull @NotNull CoreConfigFlag[] chunks, @NotNull @NotNull java.lang.String parent) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getCurrentParent
protected java.io.File getCurrentParent()
-
getFile
protected java.io.File getFile()
-
getFileConfiguration
protected org.bukkit.configuration.file.FileConfiguration getFileConfiguration()
-
save
protected void save() throws java.io.IOException
- Throws:
java.io.IOException
-
getObject
public java.lang.Object getObject(@NotNull T flag)
-
getString
public java.lang.String getString(@NotNull T flag)
-
getInt
public int getInt(@NotNull T flag)
-
getDouble
public double getDouble(@NotNull T flag)
-
-