Class Config

java.lang.Object
dev.twilite.client.config.Config

public class Config extends Object
Base class for plugin configuration objects.

Config fields are rendered by the config UI when annotated with component annotations. Field initializers provide default values when no persisted value exists.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the root config object when this config is nested.
    void
    root(Config root)
    Sets the root config object for nested config instances.
    void
    Saves the root config object that owns this config.
    boolean
    Controls whether a config component identified by key should be visible.

    Methods inherited from class java.lang.Object

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

    • Config

      public Config()
  • Method Details

    • root

      public Config root()
      Returns the root config object when this config is nested.
    • root

      public void root(Config root)
      Sets the root config object for nested config instances.
    • save

      public void save()
      Saves the root config object that owns this config.
    • shown

      public boolean shown(String key)
      Controls whether a config component identified by key should be visible.