<dd><code><ahref="ConfigurationSection.html"title="interface in org.bukkit.configuration">ConfigurationSection</a></code></dd>
</dl>
<dlclass="notes">
<dt>All Known Implementing Classes:</dt>
<dd><code><ahref="file/FileConfiguration.html"title="class in org.bukkit.configuration.file">FileConfiguration</a></code>, <code><ahref="MemoryConfiguration.html"title="class in org.bukkit.configuration">MemoryConfiguration</a></code>, <code><ahref="file/YamlConfiguration.html"title="class in org.bukkit.configuration.file">YamlConfiguration</a></code></dd>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#addDefault(java.lang.String,java.lang.Object)"class="member-name-link">addDefault</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> path,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> value)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#addDefaults(java.util.Map)"class="member-name-link">addDefaults</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> defaults)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#addDefaults(org.bukkit.configuration.Configuration)"class="member-name-link">addDefaults</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Configuration.html"title="interface in org.bukkit.configuration">Configuration</a> defaults)</code></div>
<divclass="block">Sets the default values of the given paths as provided.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Configuration.html"title="interface in org.bukkit.configuration">Configuration</a></code></div>
<divclass="block">Gets the source <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a> for this configuration.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConfigurationOptions.html"title="class in org.bukkit.configuration">ConfigurationOptions</a></code></div>
<divclass="block">Gets the <ahref="ConfigurationOptions.html"title="class in org.bukkit.configuration"><code>ConfigurationOptions</code></a> for this <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a>.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setDefaults(org.bukkit.configuration.Configuration)"class="member-name-link">setDefaults</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Configuration.html"title="interface in org.bukkit.configuration">Configuration</a> defaults)</code></div>
<divclass="block">Sets the source of all default values for this <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a>.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.configuration.ConfigurationSection">Methods inherited from interface org.bukkit.configuration.<ahref="ConfigurationSection.html"title="interface in org.bukkit.configuration">ConfigurationSection</a></h3>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">addDefault</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> path,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> value)</span></div>
<divclass="block">Sets the default value of the given path as provided.
<p>
If no source <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a> was provided as a default
collection, then a new <ahref="MemoryConfiguration.html"title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> will be created to
hold the new default value.
<p>
If value is null, the value will be removed from the default
Configuration source.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="ConfigurationSection.html#addDefault(java.lang.String,java.lang.Object)">addDefault</a></code> in interface <code><ahref="ConfigurationSection.html"title="interface in org.bukkit.configuration">ConfigurationSection</a></code></dd>
<dt>Parameters:</dt>
<dd><code>path</code> - Path of the value to set.</dd>
<dd><code>value</code> - Value to set the default to.</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - Thrown if path is null.</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">addDefaults</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>> defaults)</span></div>
<divclass="block">Sets the default values of the given paths as provided.
<p>
If no source <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a> was provided as a default
collection, then a new <ahref="MemoryConfiguration.html"title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> will be created to
hold the new default values.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>defaults</code> - A map of Path->Values to add to defaults.</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - Thrown if defaults is null.</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">addDefaults</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Configuration.html"title="interface in org.bukkit.configuration">Configuration</a> defaults)</span></div>
<divclass="block">Sets the default values of the given paths as provided.
<p>
If no source <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a> was provided as a default
collection, then a new <ahref="MemoryConfiguration.html"title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> will be created to
hold the new default value.
<p>
This method will not hold a reference to the specified Configuration,
nor will it automatically update if that Configuration ever changes. If
you require this, you should set the default source with <ahref="#setDefaults(org.bukkit.configuration.Configuration)"><code>setDefaults(org.bukkit.configuration.Configuration)</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>defaults</code> - A configuration holding a list of defaults to copy.</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - Thrown if defaults is null or this.</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setDefaults</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Configuration.html"title="interface in org.bukkit.configuration">Configuration</a> defaults)</span></div>
<divclass="block">Sets the source of all default values for this <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a>.
<p>
If a previous source was set, or previous default values were defined,
then they will not be copied to the new source.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>defaults</code> - New source of default values for this configuration.</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html"title="class or interface in java.lang"class="external-link">IllegalArgumentException</a></code> - Thrown if defaults is null or this.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getDefaults()">
<h3>getDefaults</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Configuration.html"title="interface in org.bukkit.configuration">Configuration</a></span> <spanclass="element-name">getDefaults</span>()</div>
<divclass="block">Gets the source <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a> for this configuration.
<p>
If no configuration source was set, but default values were added, then
a <ahref="MemoryConfiguration.html"title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> will be returned. If no source was set
and no defaults were set, then this method will return null.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Configuration source for default values, or null if none exist.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="options()">
<h3>options</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ConfigurationOptions.html"title="class in org.bukkit.configuration">ConfigurationOptions</a></span> <spanclass="element-name">options</span>()</div>
<divclass="block">Gets the <ahref="ConfigurationOptions.html"title="class in org.bukkit.configuration"><code>ConfigurationOptions</code></a> for this <ahref="Configuration.html"title="interface in org.bukkit.configuration"><code>Configuration</code></a>.
<p>
All setters through this method are chainable.</div>