Class AbstractYamlConfig

java.lang.Object
com.pixelmonmod.pixelmon.api.config.api.yaml.AbstractYamlConfig
All Implemented Interfaces:
Config
Direct Known Subclasses:
AFKHandlerConfig, BattleConfig, BreedingConfig, CharmsConfig, CommandsConfig, DebugConfig, DimensionsConfig, DropsConfig, EntityConfig, ExternalMovesConfig, GeneralConfig, GraphicsConfig, HealingConfig, ItemConfig, NPCsConfig, OreColorConfig, OutsideEffectsConfig, PokeDollarsConfig, PokerusConfig, QuestsConfig, RaidsConfig, RidingConfig, ServerDiscordConfig, SpawningBossConfig, SpawningGeneralConfig, SpawningLegendaryConfig, SpawningLevelDistanceConfig, SpawningMeltanConfig, SpawningPokeLootConfig, SpawningPokeStopConfig, SpawningUltraSpaceConfig, SpawningWildConfig, StorageConfig, StructureConfig, TCGConfig, TMConfig

@ConfigSerializable public abstract class AbstractYamlConfig extends Object implements Config
Abstract parent class to all YAML configuration files. Allows all child files to be serializable and when initialised using the YamlConfigFactory will auto-fill the values from the object to the config file.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.spongepowered.configurate.reference.ConfigurationReference<org.spongepowered.configurate.CommentedConfigurationNode>
     
    protected org.spongepowered.configurate.reference.ValueReference<AbstractYamlConfig,org.spongepowered.configurate.CommentedConfigurationNode>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.spongepowered.configurate.ConfigurationNode
    Gets the main configuration node of the config
    void
    Saves the data to the file

    Methods inherited from class java.lang.Object

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

    • base

      protected transient org.spongepowered.configurate.reference.ConfigurationReference<org.spongepowered.configurate.CommentedConfigurationNode> base
    • config

      protected transient org.spongepowered.configurate.reference.ValueReference<AbstractYamlConfig,org.spongepowered.configurate.CommentedConfigurationNode> config
  • Constructor Details

    • AbstractYamlConfig

      protected AbstractYamlConfig()
  • Method Details

    • getNode

      public org.spongepowered.configurate.ConfigurationNode getNode()
      Description copied from interface: Config
      Gets the main configuration node of the config
      Specified by:
      getNode in interface Config
      Returns:
      The main node
    • save

      public void save()
      Description copied from interface: Config
      Saves the data to the file
      Specified by:
      save in interface Config