Class Settings

java.lang.Object
studio.magemonkey.codex.mccore.config.parse.DataSection
studio.magemonkey.fabled.enchants.api.Settings

public class Settings extends studio.magemonkey.codex.mccore.config.parse.DataSection
FabledEnchants © 2026 VoidEdge api.studio.magemonkey.fabled.enchants.Settings
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    get(String key, int level)
    Gets a scaling setting based on the provided level
    void
    set(String key, double base, double scale)
    Sets a scaling configuration setting

    Methods inherited from class studio.magemonkey.codex.mccore.config.parse.DataSection

    addComment, applyDefaults, checkDefault, clear, clearAllComments, clearComments, createSection, defaultSection, dump, dump, dump, entrySet, get, get, getBoolean, getBoolean, getByte, getByte, getChar, getChar, getComments, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getList, getList, getSection, getShort, getShort, getString, getString, has, hasComment, isList, isNumber, isSection, keys, remove, set, setComments, size, toString, toString, trim, values

    Methods inherited from class java.lang.Object

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

    • Settings

      public Settings()
  • Method Details

    • set

      public void set(String key, double base, double scale)
      Sets a scaling configuration setting
      Parameters:
      key - setting key
      base - base value (at enchantment level 1)
      scale - value scale (extra per enchantment level)
    • get

      public double get(String key, int level)
      Gets a scaling setting based on the provided level
      Parameters:
      key - setting key
      level - enchantment level
      Returns:
      scaled setting value