Class EdenPathConfig

java.lang.Object
org.betterx.bclib.config.Config
paulevs.edenring.config.EdenPathConfig

public class EdenPathConfig extends org.betterx.bclib.config.Config
Replacement for the removed BCLib PathConfig (path/section-style config).

BCLib 21.x kept only IdConfig and EntryConfig (both ResourceLocation-keyed). This class re-exposes the old getFloat(path, entry, default)-style API on top of the Config base class, splitting dotted section paths like terrain.layers.bigIslands.

  • Field Summary

    Fields inherited from class org.betterx.bclib.config.Config

    CONFIG_SYNC_PREFIX, configID, keeper
  • Constructor Summary

    Constructors
    Constructor
    Description
    EdenPathConfig(String modID, String group)
     
    EdenPathConfig(String modID, String group, boolean ignored, boolean ignored2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    getBoolean(String path, String entry, boolean def)
     
    boolean
    getBooleanRoot(String entry, boolean def)
    Reads a root-level boolean entry (no section path).
    float
    getFloat(String path, String entry, float def)
     
    int
    getInt(String path, String entry, int def)
     
    protected void
     

    Methods inherited from class org.betterx.bclib.config.Config

    getBoolean, getBoolean, getDefault, getEntry, getFloat, getFloat, getInt, getInt, getString, getString, getStringArray, getStringArray, reload, saveChanges, setBoolean, setFloat, setInt, setRanged, setString, setStringArray

    Methods inherited from class java.lang.Object

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

    • EdenPathConfig

      public EdenPathConfig(String modID, String group)
    • EdenPathConfig

      public EdenPathConfig(String modID, String group, boolean ignored, boolean ignored2)
  • Method Details

    • registerEntries

      protected void registerEntries()
      Specified by:
      registerEntries in class org.betterx.bclib.config.Config
    • getFloat

      public float getFloat(String path, String entry, float def)
    • getInt

      public int getInt(String path, String entry, int def)
    • getBoolean

      public boolean getBoolean(String path, String entry, boolean def)
    • getBooleanRoot

      public boolean getBooleanRoot(String entry, boolean def)
      Reads a root-level boolean entry (no section path).
      Parameters:
      entry - the entry name (e.g. an entity id).
      def - the default value.