Class CoreConfig<T extends CoreConfigFlag>


  • 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)  
    • 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)