Class BaseConfig

java.lang.Object
ml.pluto7073.pdapi.config.BaseConfig

@Deprecated(forRemoval=true) public abstract class BaseConfig extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use ServerConfig and ClientConfig and optionally add to PDCommonConfig using JointServerConfig.addManagedConfig(ml.pluto7073.plutonium.config.ServerConfigType...)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.logging.log4j.Logger
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected Properties
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseConfig(String modid, String name, org.apache.logging.log4j.Logger logger)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected <T extends Enum<T>>
    T
    getEnum(String key, Class<T> enumClass)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected float
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    abstract void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setBoolean(String key, boolean b)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected <T extends Enum<T>>
    void
    setEnum(String key, T value)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setFloat(String key, float f)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setInt(String key, int i)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • properties

      protected Properties properties
      Deprecated, for removal: This API element is subject to removal in a future version.
    • modid

      protected String modid
      Deprecated, for removal: This API element is subject to removal in a future version.
    • name

      protected String name
      Deprecated, for removal: This API element is subject to removal in a future version.
    • logger

      protected org.apache.logging.log4j.Logger logger
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • BaseConfig

      public BaseConfig(String modid, String name, org.apache.logging.log4j.Logger logger)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • initConfig

      public abstract void initConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • load

      public void load()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • save

      public void save()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setInt

      protected void setInt(String key, int i)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setFloat

      protected void setFloat(String key, float f)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setBoolean

      protected void setBoolean(String key, boolean b)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setEnum

      protected <T extends Enum<T>> void setEnum(String key, T value)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getInt

      protected int getInt(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getFloat

      protected float getFloat(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBoolean

      protected boolean getBoolean(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getEnum

      protected <T extends Enum<T>> T getEnum(String key, Class<T> enumClass)
      Deprecated, for removal: This API element is subject to removal in a future version.