<!DOCTYPE HTML> <html lang="en"> <head> <!-- Generated by javadoc (17) --> <title>MemoryConfiguration (Scissors-API 1.19.4-R0.1-SNAPSHOT API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="declaration: package: org.bukkit.configuration, class: MemoryConfiguration"> <meta name="generator" content="javadoc/ClassWriterImpl"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../script-dir/jquery-ui.min.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> <script type="text/javascript" src="../../../script-dir/jquery-3.6.0.min.js"></script> <script type="text/javascript" src="../../../script-dir/jquery-ui.min.js"></script> </head> <body class="class-declaration-page"> <script type="text/javascript">var evenRowColor = "even-row-color"; var oddRowColor = "odd-row-color"; var tableTab = "table-tab"; var activeTableTab = "active-table-tab"; var pathtoroot = "../../../"; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="flex-box"> <header role="banner" class="flex-header"> <nav role="navigation"> <!-- ========= START OF TOP NAVBAR ======= --> <div class="top-nav" id="navbar-top"> <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> <li><a href="../../../index.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="nav-bar-cell1-rev">Class</li> <li><a href="class-use/MemoryConfiguration.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html#class">Help</a></li> </ul> </div> <div class="sub-nav"> <div> <ul class="sub-nav-list"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field-summary">Field</a> | </li> <li><a href="#constructor-summary">Constr</a> | </li> <li><a href="#method-summary">Method</a></li> </ul> <ul class="sub-nav-list"> <li>Detail: </li> <li><a href="#field-detail">Field</a> | </li> <li><a href="#constructor-detail">Constr</a> | </li> <li><a href="#method-detail">Method</a></li> </ul> </div> <div class="nav-list-search"><label for="search-input">SEARCH:</label> <input type="text" id="search-input" value="search" disabled="disabled"> <input type="reset" id="reset-button" value="reset" disabled="disabled"> </div> </div> <!-- ========= END OF TOP NAVBAR ========= --> <span class="skip-nav" id="skip-navbar-top"></span></nav> </header> <div class="flex-content"> <main role="main"> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.bukkit.configuration</a></div> <h1 title="Class MemoryConfiguration" class="title">Class MemoryConfiguration</h1> </div> <div class="inheritance" title="Inheritance Tree"><a href="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">java.lang.Object</a> <div class="inheritance"><a href="MemorySection.html" title="class in org.bukkit.configuration">org.bukkit.configuration.MemorySection</a> <div class="inheritance">org.bukkit.configuration.MemoryConfiguration</div> </div> </div> <section class="class-description" id="class-description"> <dl class="notes"> <dt>All Implemented Interfaces:</dt> <dd><code><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code>, <code><a href="ConfigurationSection.html" title="interface in org.bukkit.configuration">ConfigurationSection</a></code></dd> </dl> <dl class="notes"> <dt>Direct Known Subclasses:</dt> <dd><code><a href="file/FileConfiguration.html" title="class in org.bukkit.configuration.file">FileConfiguration</a></code></dd> </dl> <hr> <div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">MemoryConfiguration</span> <span class="extends-implements">extends <a href="MemorySection.html" title="class in org.bukkit.configuration">MemorySection</a> implements <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></span></div> <div class="block">This is a <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> implementation that does not save or load from any source, and stores all values in memory only. This is useful for temporary Configurations for providing defaults.</div> </section> <section class="summary"> <ul class="summary-list"> <!-- =========== FIELD SUMMARY =========== --> <li> <section class="field-summary" id="field-summary"> <h2>Field Summary</h2> <div class="caption"><span>Fields</span></div> <div class="summary-table three-column-summary"> <div class="table-header col-first">Modifier and Type</div> <div class="table-header col-second">Field</div> <div class="table-header col-last">Description</div> <div class="col-first even-row-color"><code>protected <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></div> <div class="col-second even-row-color"><code><a href="#defaults" class="member-name-link">defaults</a></code></div> <div class="col-last even-row-color"> </div> <div class="col-first odd-row-color"><code>protected <a href="MemoryConfigurationOptions.html" title="class in org.bukkit.configuration">MemoryConfigurationOptions</a></code></div> <div class="col-second odd-row-color"><code><a href="#options" class="member-name-link">options</a></code></div> <div class="col-last odd-row-color"> </div> </div> <div class="inherited-list"> <h3 id="fields-inherited-from-class-org.bukkit.configuration.MemorySection">Fields inherited from class org.bukkit.configuration.<a href="MemorySection.html" title="class in org.bukkit.configuration">MemorySection</a></h3> <code><a href="MemorySection.html#map">map</a></code></div> </section> </li> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <li> <section class="constructor-summary" id="constructor-summary"> <h2>Constructor Summary</h2> <div class="caption"><span>Constructors</span></div> <div class="summary-table two-column-summary"> <div class="table-header col-first">Constructor</div> <div class="table-header col-last">Description</div> <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">MemoryConfiguration</a>()</code></div> <div class="col-last even-row-color"> <div class="block">Creates an empty <a href="MemoryConfiguration.html" title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> with no default values.</div> </div> <div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(org.bukkit.configuration.Configuration)" class="member-name-link">MemoryConfiguration</a><wbr>(<a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a> defaults)</code></div> <div class="col-last odd-row-color"> <div class="block">Creates an empty <a href="MemoryConfiguration.html" title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> using the specified <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> as a source for all default values.</div> </div> </div> </section> </li> <!-- ========== METHOD SUMMARY =========== --> <li> <section class="method-summary" id="method-summary"> <h2>Method Summary</h2> <div id="method-summary-table"> <div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div> <div id="method-summary-table.tabpanel" role="tabpanel"> <div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0"> <div class="table-header col-first">Modifier and Type</div> <div class="table-header col-second">Method</div> <div class="table-header col-last">Description</div> <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#addDefault(java.lang.String,java.lang.Object)" class="member-name-link">addDefault</a><wbr>(<a href="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> <a href="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, <a href="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> <a href="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> <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> <div class="block">Sets the default value in the root at the given path as provided.</div> </div> <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#addDefaults(java.util.Map)" class="member-name-link">addDefaults</a><wbr>(<a href="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> <a href="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><<a href="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><a href="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> <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> <div class="block">Sets the default values of the given paths as provided.</div> </div> <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#addDefaults(org.bukkit.configuration.Configuration)" class="member-name-link">addDefaults</a><wbr>(<a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a> defaults)</code></div> <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> <div class="block">Sets the default values of the given paths as provided.</div> </div> <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></div> <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getDefaults()" class="member-name-link">getDefaults</a>()</code></div> <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> <div class="block">Gets the source <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> for this configuration.</div> </div> <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="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> <a href="ConfigurationSection.html" title="interface in org.bukkit.configuration">ConfigurationSection</a></code></div> <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getParent()" class="member-name-link">getParent</a>()</code></div> <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> <div class="block">Gets the parent <a href="ConfigurationSection.html" title="interface in org.bukkit.configuration"><code>ConfigurationSection</code></a> that directly contains this <a href="ConfigurationSection.html" title="interface in org.bukkit.configuration"><code>ConfigurationSection</code></a>.</div> </div> <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="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> <a href="MemoryConfigurationOptions.html" title="class in org.bukkit.configuration">MemoryConfigurationOptions</a></code></div> <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#options()" class="member-name-link">options</a>()</code></div> <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> <div class="block">Gets the <a href="ConfigurationOptions.html" title="class in org.bukkit.configuration"><code>ConfigurationOptions</code></a> for this <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a>.</div> </div> <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setDefaults(org.bukkit.configuration.Configuration)" class="member-name-link">setDefaults</a><wbr>(<a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a> defaults)</code></div> <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> <div class="block">Sets the source of all default values for this <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a>.</div> </div> </div> </div> </div> <div class="inherited-list"> <h3 id="methods-inherited-from-class-org.bukkit.configuration.MemorySection">Methods inherited from class org.bukkit.configuration.<a href="MemorySection.html" title="class in org.bukkit.configuration">MemorySection</a></h3> <code><a href="MemorySection.html#contains(java.lang.String)">contains</a>, <a href="MemorySection.html#contains(java.lang.String,boolean)">contains</a>, <a href="MemorySection.html#createPath(org.bukkit.configuration.ConfigurationSection,java.lang.String)">createPath</a>, <a href="MemorySection.html#createPath(org.bukkit.configuration.ConfigurationSection,java.lang.String,org.bukkit.configuration.ConfigurationSection)">createPath</a>, <a href="MemorySection.html#createSection(java.lang.String)">createSection</a>, <a href="MemorySection.html#createSection(java.lang.String,java.util.Map)">createSection</a>, <a href="MemorySection.html#get(java.lang.String)">get</a>, <a href="MemorySection.html#get(java.lang.String,java.lang.Object)">get</a>, <a href="MemorySection.html#getBoolean(java.lang.String)">getBoolean</a>, <a href="MemorySection.html#getBoolean(java.lang.String,boolean)">getBoolean</a>, <a href="MemorySection.html#getBooleanList(java.lang.String)">getBooleanList</a>, <a href="MemorySection.html#getByteList(java.lang.String)">getByteList</a>, <a href="MemorySection.html#getCharacterList(java.lang.String)">getCharacterList</a>, <a href="MemorySection.html#getColor(java.lang.String)">getColor</a>, <a href="MemorySection.html#getColor(java.lang.String,org.bukkit.Color)">getColor</a>, <a href="MemorySection.html#getComments(java.lang.String)">getComments</a>, <a href="MemorySection.html#getConfigurationSection(java.lang.String)">getConfigurationSection</a>, <a href="MemorySection.html#getCurrentPath()">getCurrentPath</a>, <a href="MemorySection.html#getDefault(java.lang.String)">getDefault</a>, <a href="MemorySection.html#getDefaultSection()">getDefaultSection</a>, <a href="MemorySection.html#getDouble(java.lang.String)">getDouble</a>, <a href="MemorySection.html#getDouble(java.lang.String,double)">getDouble</a>, <a href="MemorySection.html#getDoubleList(java.lang.String)">getDoubleList</a>, <a href="MemorySection.html#getFloatList(java.lang.String)">getFloatList</a>, <a href="MemorySection.html#getInlineComments(java.lang.String)">getInlineComments</a>, <a href="MemorySection.html#getInt(java.lang.String)">getInt</a>, <a href="MemorySection.html#getInt(java.lang.String,int)">getInt</a>, <a href="MemorySection.html#getIntegerList(java.lang.String)">getIntegerList</a>, <a href="MemorySection.html#getItemStack(java.lang.String)">getItemStack</a>, <a href="MemorySection.html#getItemStack(java.lang.String,org.bukkit.inventory.ItemStack)">getItemStack</a>, <a href="MemorySection.html#getKeys(boolean)">getKeys</a>, <a href="MemorySection.html#getList(java.lang.String)">getList</a>, <a href="MemorySection.html#getList(java.lang.String,java.util.List)">getList</a>, <a href="MemorySection.html#getLocation(java.lang.String)">getLocation</a>, <a href="MemorySection.html#getLocation(java.lang.String,org.bukkit.Location)">getLocation</a>, <a href="MemorySection.html#getLong(java.lang.String)">getLong</a>, <a href="MemorySection.html#getLong(java.lang.String,long)">getLong</a>, <a href="MemorySection.html#getLongList(java.lang.String)">getLongList</a>, <a href="MemorySection.html#getMapList(java.lang.String)">getMapList</a>, <a href="MemorySection.html#getName()">getName</a>, <a href="MemorySection.html#getObject(java.lang.String,java.lang.Class)">getObject</a>, <a href="MemorySection.html#getObject(java.lang.String,java.lang.Class,T)">getObject</a>, <a href="MemorySection.html#getOfflinePlayer(java.lang.String)">getOfflinePlayer</a>, <a href="MemorySection.html#getOfflinePlayer(java.lang.String,org.bukkit.OfflinePlayer)">getOfflinePlayer</a>, <a href="MemorySection.html#getRoot()">getRoot</a>, <a href="MemorySection.html#getSerializable(java.lang.String,java.lang.Class)">getSerializable</a>, <a href="MemorySection.html#getSerializable(java.lang.String,java.lang.Class,T)">getSerializable</a>, <a href="MemorySection.html#getShortList(java.lang.String)">getShortList</a>, <a href="MemorySection.html#getString(java.lang.String)">getString</a>, <a href="MemorySection.html#getString(java.lang.String,java.lang.String)">getString</a>, <a href="MemorySection.html#getStringList(java.lang.String)">getStringList</a>, <a href="MemorySection.html#getValues(boolean)">getValues</a>, <a href="MemorySection.html#getVector(java.lang.String)">getVector</a>, <a href="MemorySection.html#getVector(java.lang.String,org.bukkit.util.Vector)">getVector</a>, <a href="MemorySection.html#isBoolean(java.lang.String)">isBoolean</a>, <a href="MemorySection.html#isColor(java.lang.String)">isColor</a>, <a href="MemorySection.html#isConfigurationSection(java.lang.String)">isConfigurationSection</a>, <a href="MemorySection.html#isDouble(java.lang.String)">isDouble</a>, <a href="MemorySection.html#isInt(java.lang.String)">isInt</a>, <a href="MemorySection.html#isItemStack(java.lang.String)">isItemStack</a>, <a href="MemorySection.html#isList(java.lang.String)">isList</a>, <a href="MemorySection.html#isLocation(java.lang.String)">isLocation</a>, <a href="MemorySection.html#isLong(java.lang.String)">isLong</a>, <a href="MemorySection.html#isOfflinePlayer(java.lang.String)">isOfflinePlayer</a>, <a href="MemorySection.html#isPrimitiveWrapper(java.lang.Object)">isPrimitiveWrapper</a>, <a href="MemorySection.html#isSet(java.lang.String)">isSet</a>, <a href="MemorySection.html#isString(java.lang.String)">isString</a>, <a href="MemorySection.html#isVector(java.lang.String)">isVector</a>, <a href="MemorySection.html#mapChildrenKeys(java.util.Set,org.bukkit.configuration.ConfigurationSection,boolean)">mapChildrenKeys</a>, <a href="MemorySection.html#mapChildrenValues(java.util.Map,org.bukkit.configuration.ConfigurationSection,boolean)">mapChildrenValues</a>, <a href="MemorySection.html#set(java.lang.String,java.lang.Object)">set</a>, <a href="MemorySection.html#setComments(java.lang.String,java.util.List)">setComments</a>, <a href="MemorySection.html#setInlineComments(java.lang.String,java.util.List)">setInlineComments</a>, <a href="MemorySection.html#toString()">toString</a></code></div> <div class="inherited-list"> <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="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></h3> <code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div> <div class="inherited-list"> <h3 id="methods-inherited-from-class-org.bukkit.configuration.ConfigurationSection">Methods inherited from interface org.bukkit.configuration.<a href="ConfigurationSection.html" title="interface in org.bukkit.configuration">ConfigurationSection</a></h3> <code><a href="ConfigurationSection.html#contains(java.lang.String)">contains</a>, <a href="ConfigurationSection.html#contains(java.lang.String,boolean)">contains</a>, <a href="ConfigurationSection.html#createSection(java.lang.String)">createSection</a>, <a href="ConfigurationSection.html#createSection(java.lang.String,java.util.Map)">createSection</a>, <a href="ConfigurationSection.html#get(java.lang.String)">get</a>, <a href="ConfigurationSection.html#get(java.lang.String,java.lang.Object)">get</a>, <a href="ConfigurationSection.html#getBoolean(java.lang.String)">getBoolean</a>, <a href="ConfigurationSection.html#getBoolean(java.lang.String,boolean)">getBoolean</a>, <a href="ConfigurationSection.html#getBooleanList(java.lang.String)">getBooleanList</a>, <a href="ConfigurationSection.html#getByteList(java.lang.String)">getByteList</a>, <a href="ConfigurationSection.html#getCharacterList(java.lang.String)">getCharacterList</a>, <a href="ConfigurationSection.html#getColor(java.lang.String)">getColor</a>, <a href="ConfigurationSection.html#getColor(java.lang.String,org.bukkit.Color)">getColor</a>, <a href="ConfigurationSection.html#getComments(java.lang.String)">getComments</a>, <a href="ConfigurationSection.html#getConfigurationSection(java.lang.String)">getConfigurationSection</a>, <a href="ConfigurationSection.html#getCurrentPath()">getCurrentPath</a>, <a href="ConfigurationSection.html#getDefaultSection()">getDefaultSection</a>, <a href="ConfigurationSection.html#getDouble(java.lang.String)">getDouble</a>, <a href="ConfigurationSection.html#getDouble(java.lang.String,double)">getDouble</a>, <a href="ConfigurationSection.html#getDoubleList(java.lang.String)">getDoubleList</a>, <a href="ConfigurationSection.html#getFloatList(java.lang.String)">getFloatList</a>, <a href="ConfigurationSection.html#getInlineComments(java.lang.String)">getInlineComments</a>, <a href="ConfigurationSection.html#getInt(java.lang.String)">getInt</a>, <a href="ConfigurationSection.html#getInt(java.lang.String,int)">getInt</a>, <a href="ConfigurationSection.html#getIntegerList(java.lang.String)">getIntegerList</a>, <a href="ConfigurationSection.html#getItemStack(java.lang.String)">getItemStack</a>, <a href="ConfigurationSection.html#getItemStack(java.lang.String,org.bukkit.inventory.ItemStack)">getItemStack</a>, <a href="ConfigurationSection.html#getKeys(boolean)">getKeys</a>, <a href="ConfigurationSection.html#getList(java.lang.String)">getList</a>, <a href="ConfigurationSection.html#getList(java.lang.String,java.util.List)">getList</a>, <a href="ConfigurationSection.html#getLocation(java.lang.String)">getLocation</a>, <a href="ConfigurationSection.html#getLocation(java.lang.String,org.bukkit.Location)">getLocation</a>, <a href="ConfigurationSection.html#getLong(java.lang.String)">getLong</a>, <a href="ConfigurationSection.html#getLong(java.lang.String,long)">getLong</a>, <a href="ConfigurationSection.html#getLongList(java.lang.String)">getLongList</a>, <a href="ConfigurationSection.html#getMapList(java.lang.String)">getMapList</a>, <a href="ConfigurationSection.html#getName()">getName</a>, <a href="ConfigurationSection.html#getObject(java.lang.String,java.lang.Class)">getObject</a>, <a href="ConfigurationSection.html#getObject(java.lang.String,java.lang.Class,T)">getObject</a>, <a href="ConfigurationSection.html#getOfflinePlayer(java.lang.String)">getOfflinePlayer</a>, <a href="ConfigurationSection.html#getOfflinePlayer(java.lang.String,org.bukkit.OfflinePlayer)">getOfflinePlayer</a>, <a href="ConfigurationSection.html#getRoot()">getRoot</a>, <a href="ConfigurationSection.html#getSerializable(java.lang.String,java.lang.Class)">getSerializable</a>, <a href="ConfigurationSection.html#getSerializable(java.lang.String,java.lang.Class,T)">getSerializable</a>, <a href="ConfigurationSection.html#getShortList(java.lang.String)">getShortList</a>, <a href="ConfigurationSection.html#getString(java.lang.String)">getString</a>, <a href="ConfigurationSection.html#getString(java.lang.String,java.lang.String)">getString</a>, <a href="ConfigurationSection.html#getStringList(java.lang.String)">getStringList</a>, <a href="ConfigurationSection.html#getValues(boolean)">getValues</a>, <a href="ConfigurationSection.html#getVector(java.lang.String)">getVector</a>, <a href="ConfigurationSection.html#getVector(java.lang.String,org.bukkit.util.Vector)">getVector</a>, <a href="ConfigurationSection.html#isBoolean(java.lang.String)">isBoolean</a>, <a href="ConfigurationSection.html#isColor(java.lang.String)">isColor</a>, <a href="ConfigurationSection.html#isConfigurationSection(java.lang.String)">isConfigurationSection</a>, <a href="ConfigurationSection.html#isDouble(java.lang.String)">isDouble</a>, <a href="ConfigurationSection.html#isInt(java.lang.String)">isInt</a>, <a href="ConfigurationSection.html#isItemStack(java.lang.String)">isItemStack</a>, <a href="ConfigurationSection.html#isList(java.lang.String)">isList</a>, <a href="ConfigurationSection.html#isLocation(java.lang.String)">isLocation</a>, <a href="ConfigurationSection.html#isLong(java.lang.String)">isLong</a>, <a href="ConfigurationSection.html#isOfflinePlayer(java.lang.String)">isOfflinePlayer</a>, <a href="ConfigurationSection.html#isSet(java.lang.String)">isSet</a>, <a href="ConfigurationSection.html#isString(java.lang.String)">isString</a>, <a href="ConfigurationSection.html#isVector(java.lang.String)">isVector</a>, <a href="ConfigurationSection.html#set(java.lang.String,java.lang.Object)">set</a>, <a href="ConfigurationSection.html#setComments(java.lang.String,java.util.List)">setComments</a>, <a href="ConfigurationSection.html#setInlineComments(java.lang.String,java.util.List)">setInlineComments</a></code></div> </section> </li> </ul> </section> <section class="details"> <ul class="details-list"> <!-- ============ FIELD DETAIL =========== --> <li> <section class="field-details" id="field-detail"> <h2>Field Details</h2> <ul class="member-list"> <li> <section class="detail" id="defaults"> <h3>defaults</h3> <div class="member-signature"><span class="modifiers">protected</span> <span class="return-type"><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></span> <span class="element-name">defaults</span></div> </section> </li> <li> <section class="detail" id="options"> <h3>options</h3> <div class="member-signature"><span class="modifiers">protected</span> <span class="return-type"><a href="MemoryConfigurationOptions.html" title="class in org.bukkit.configuration">MemoryConfigurationOptions</a></span> <span class="element-name">options</span></div> </section> </li> </ul> </section> </li> <!-- ========= CONSTRUCTOR DETAIL ======== --> <li> <section class="constructor-details" id="constructor-detail"> <h2>Constructor Details</h2> <ul class="member-list"> <li> <section class="detail" id="<init>()"> <h3>MemoryConfiguration</h3> <div class="member-signature"><span class="modifiers">public</span> <span class="element-name">MemoryConfiguration</span>()</div> <div class="block">Creates an empty <a href="MemoryConfiguration.html" title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> with no default values.</div> </section> </li> <li> <section class="detail" id="<init>(org.bukkit.configuration.Configuration)"> <h3>MemoryConfiguration</h3> <div class="member-signature"><span class="modifiers">public</span> <span class="element-name">MemoryConfiguration</span><wbr><span class="parameters">(<a href="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> <a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a> defaults)</span></div> <div class="block">Creates an empty <a href="MemoryConfiguration.html" title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> using the specified <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> as a source for all default values.</div> <dl class="notes"> <dt>Parameters:</dt> <dd><code>defaults</code> - Default value provider</dd> <dt>Throws:</dt> <dd><code><a href="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> </dl> </section> </li> </ul> </section> </li> <!-- ============ METHOD DETAIL ========== --> <li> <section class="method-details" id="method-detail"> <h2>Method Details</h2> <ul class="member-list"> <li> <section class="detail" id="addDefault(java.lang.String,java.lang.Object)"> <h3>addDefault</h3> <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">addDefault</span><wbr><span class="parameters">(<a href="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> <a href="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> <a href="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, <a href="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> <a href="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> <a href="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> <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ConfigurationSection.html#addDefault(java.lang.String,java.lang.Object)">ConfigurationSection</a></code></span></div> <div class="block">Sets the default value in the root at the given path as provided. <p> If no source <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> was provided as a default collection, then a new <a href="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. <p> If the value as returned by <a href="ConfigurationSection.html#getDefaultSection()"><code>ConfigurationSection.getDefaultSection()</code></a> is null, then this will create a new section at the path, replacing anything that may have existed there previously.</div> <dl class="notes"> <dt>Specified by:</dt> <dd><code><a href="Configuration.html#addDefault(java.lang.String,java.lang.Object)">addDefault</a></code> in interface <code><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></dd> <dt>Specified by:</dt> <dd><code><a href="ConfigurationSection.html#addDefault(java.lang.String,java.lang.Object)">addDefault</a></code> in interface <code><a href="ConfigurationSection.html" title="interface in org.bukkit.configuration">ConfigurationSection</a></code></dd> <dt>Overrides:</dt> <dd><code><a href="MemorySection.html#addDefault(java.lang.String,java.lang.Object)">addDefault</a></code> in class <code><a href="MemorySection.html" title="class in org.bukkit.configuration">MemorySection</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> </dl> </section> </li> <li> <section class="detail" id="addDefaults(java.util.Map)"> <h3>addDefaults</h3> <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">addDefaults</span><wbr><span class="parameters">(<a href="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> <a href="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> <a href="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><<a href="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><a href="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> <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="Configuration.html#addDefaults(java.util.Map)">Configuration</a></code></span></div> <div class="block">Sets the default values of the given paths as provided. <p> If no source <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> was provided as a default collection, then a new <a href="MemoryConfiguration.html" title="class in org.bukkit.configuration"><code>MemoryConfiguration</code></a> will be created to hold the new default values.</div> <dl class="notes"> <dt>Specified by:</dt> <dd><code><a href="Configuration.html#addDefaults(java.util.Map)">addDefaults</a></code> in interface <code><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></dd> <dt>Parameters:</dt> <dd><code>defaults</code> - A map of Path->Values to add to defaults.</dd> </dl> </section> </li> <li> <section class="detail" id="addDefaults(org.bukkit.configuration.Configuration)"> <h3>addDefaults</h3> <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">addDefaults</span><wbr><span class="parameters">(<a href="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> <a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a> defaults)</span></div> <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="Configuration.html#addDefaults(org.bukkit.configuration.Configuration)">Configuration</a></code></span></div> <div class="block">Sets the default values of the given paths as provided. <p> If no source <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> was provided as a default collection, then a new <a href="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 <a href="Configuration.html#setDefaults(org.bukkit.configuration.Configuration)"><code>Configuration.setDefaults(org.bukkit.configuration.Configuration)</code></a>.</div> <dl class="notes"> <dt>Specified by:</dt> <dd><code><a href="Configuration.html#addDefaults(org.bukkit.configuration.Configuration)">addDefaults</a></code> in interface <code><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></dd> <dt>Parameters:</dt> <dd><code>defaults</code> - A configuration holding a list of defaults to copy.</dd> </dl> </section> </li> <li> <section class="detail" id="setDefaults(org.bukkit.configuration.Configuration)"> <h3>setDefaults</h3> <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">setDefaults</span><wbr><span class="parameters">(<a href="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> <a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a> defaults)</span></div> <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="Configuration.html#setDefaults(org.bukkit.configuration.Configuration)">Configuration</a></code></span></div> <div class="block">Sets the source of all default values for this <a href="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> <dl class="notes"> <dt>Specified by:</dt> <dd><code><a href="Configuration.html#setDefaults(org.bukkit.configuration.Configuration)">setDefaults</a></code> in interface <code><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></dd> <dt>Parameters:</dt> <dd><code>defaults</code> - New source of default values for this configuration.</dd> </dl> </section> </li> <li> <section class="detail" id="getDefaults()"> <h3>getDefaults</h3> <div class="member-signature"><span class="annotations"><a href="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><span class="modifiers">public</span> <span class="return-type"><a href="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> <a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></span> <span class="element-name">getDefaults</span>()</div> <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="Configuration.html#getDefaults()">Configuration</a></code></span></div> <div class="block">Gets the source <a href="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 <a href="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> <dl class="notes"> <dt>Specified by:</dt> <dd><code><a href="Configuration.html#getDefaults()">getDefaults</a></code> in interface <code><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></dd> <dt>Returns:</dt> <dd>Configuration source for default values, or null if none exist.</dd> </dl> </section> </li> <li> <section class="detail" id="getParent()"> <h3>getParent</h3> <div class="member-signature"><span class="annotations"><a href="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><span class="modifiers">public</span> <span class="return-type"><a href="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> <a href="ConfigurationSection.html" title="interface in org.bukkit.configuration">ConfigurationSection</a></span> <span class="element-name">getParent</span>()</div> <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ConfigurationSection.html#getParent()">ConfigurationSection</a></code></span></div> <div class="block">Gets the parent <a href="ConfigurationSection.html" title="interface in org.bukkit.configuration"><code>ConfigurationSection</code></a> that directly contains this <a href="ConfigurationSection.html" title="interface in org.bukkit.configuration"><code>ConfigurationSection</code></a>. <p> For any <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a> themselves, this will return null. <p> If the section is no longer contained within its parent for any reason, such as being replaced with a different value, this may return null.</div> <dl class="notes"> <dt>Specified by:</dt> <dd><code><a href="ConfigurationSection.html#getParent()">getParent</a></code> in interface <code><a href="ConfigurationSection.html" title="interface in org.bukkit.configuration">ConfigurationSection</a></code></dd> <dt>Overrides:</dt> <dd><code><a href="MemorySection.html#getParent()">getParent</a></code> in class <code><a href="MemorySection.html" title="class in org.bukkit.configuration">MemorySection</a></code></dd> <dt>Returns:</dt> <dd>Parent section containing this section.</dd> </dl> </section> </li> <li> <section class="detail" id="options()"> <h3>options</h3> <div class="member-signature"><span class="annotations"><a href="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><span class="modifiers">public</span> <span class="return-type"><a href="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> <a href="MemoryConfigurationOptions.html" title="class in org.bukkit.configuration">MemoryConfigurationOptions</a></span> <span class="element-name">options</span>()</div> <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="Configuration.html#options()">Configuration</a></code></span></div> <div class="block">Gets the <a href="ConfigurationOptions.html" title="class in org.bukkit.configuration"><code>ConfigurationOptions</code></a> for this <a href="Configuration.html" title="interface in org.bukkit.configuration"><code>Configuration</code></a>. <p> All setters through this method are chainable.</div> <dl class="notes"> <dt>Specified by:</dt> <dd><code><a href="Configuration.html#options()">options</a></code> in interface <code><a href="Configuration.html" title="interface in org.bukkit.configuration">Configuration</a></code></dd> <dt>Returns:</dt> <dd>Options for this configuration</dd> </dl> </section> </li> </ul> </section> </li> </ul> </section> <!-- ========= END OF CLASS DATA ========= --> </main> </div> </div> </body> </html>