<h1title="Class Registry.SimpleRegistry"class="title">Class Registry.SimpleRegistry<T extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><T>&<ahref="Keyed.html"title="interface in org.bukkit">Keyed</a>></h1>
</div>
<divclass="inheritance"title="Inheritance Tree"><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">java.lang.Object</a>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html"title="class or interface in java.lang"class="external-link">Iterable</a><T></code>, <code><ahref="Registry.html"title="interface in org.bukkit">Registry</a><T></code></dd>
</dl>
<dlclass="notes">
<dt>Enclosing interface:</dt>
<dd><ahref="Registry.html"title="interface in org.bukkit">Registry</a><<ahref="Registry.html"title="type parameter in Registry">T</a> extends <ahref="Keyed.html"title="interface in org.bukkit">Keyed</a>></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public static final class </span><spanclass="element-name type-name-label">Registry.SimpleRegistry<T extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><T>&<ahref="Keyed.html"title="interface in org.bukkit">Keyed</a>></span>
<spanclass="extends-implements">extends <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>
implements <ahref="Registry.html"title="interface in org.bukkit">Registry</a><T></span></div>
<h2id="nested-classes-inherited-from-class-org.bukkit.Registry">Nested classes/interfaces inherited from interface org.bukkit.<ahref="Registry.html"title="interface in org.bukkit">Registry</a></h2>
<code><ahref="Registry.SimpleRegistry.html"title="class in org.bukkit">Registry.SimpleRegistry</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>>&<ahref="Keyed.html"title="interface in org.bukkit">Keyed</a>></code></div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="inherited-list">
<h3id="fields-inherited-from-class-org.bukkit.Registry">Fields inherited from interface org.bukkit.<ahref="Registry.html"title="interface in org.bukkit">Registry</a></h3>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.lang.Class)"class="member-name-link">SimpleRegistry</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/Class.html"title="class or interface in java.lang"class="external-link">Class</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>> type)</code></div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(java.lang.Class,java.util.function.Predicate)"class="member-name-link">SimpleRegistry</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/Class.html"title="class or interface in java.lang"class="external-link">Class</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>> 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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>> predicate)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#get(org.bukkit.NamespacedKey)"class="member-name-link">get</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="NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</code></div>
<divclass="block">Get the object by its key.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html"title="class or interface in java.util"class="external-link">Iterator</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>></code></div>
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<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></h3>
<code><ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="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>, <ahref="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>, <ahref="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>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Iterable">Methods inherited from interface java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html"title="class or interface in java.lang"class="external-link">Iterable</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html#forEach(java.util.function.Consumer)"title="class or interface in java.lang"class="external-link">forEach</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html#spliterator()"title="class or interface in java.lang"class="external-link">spliterator</a></code></div>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="element-name">SimpleRegistry</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/Class.html"title="class or interface in java.lang"class="external-link">Class</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>> type)</span></div>
<divclass="member-signature"><spanclass="modifiers">protected</span> <spanclass="element-name">SimpleRegistry</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/Class.html"title="class or interface in java.lang"class="external-link">Class</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>> 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="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/function/Predicate.html"title="class or interface in java.util.function"class="external-link">Predicate</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>> predicate)</span></div>
<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="modifiers">public</span> <spanclass="return-type"><ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a></span> <spanclass="element-name">get</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="NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="Registry.html#get(org.bukkit.NamespacedKey)">Registry</a></code></span></div>
<divclass="block">Get the object by its key.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="Registry.html#get(org.bukkit.NamespacedKey)">get</a></code> in interface <code><ahref="Registry.html"title="interface in org.bukkit">Registry</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>>&<ahref="Keyed.html"title="interface in org.bukkit">Keyed</a>></code></dd>
<dt>Parameters:</dt>
<dd><code>key</code> - non-null key</dd>
<dt>Returns:</dt>
<dd>item or null if does not exist</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="iterator()">
<h3>iterator</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="modifiers">public</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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html"title="class or interface in java.util"class="external-link">Iterator</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>></span> <spanclass="element-name">iterator</span>()</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html#iterator()"title="class or interface in java.lang"class="external-link">iterator</a></code> in interface <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html"title="class or interface in java.lang"class="external-link">Iterable</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Enum.html"title="class or interface in java.lang"class="external-link">Enum</a><<ahref="Registry.SimpleRegistry.html"title="type parameter in Registry.SimpleRegistry">T</a>>&<ahref="Keyed.html"title="interface in org.bukkit">Keyed</a>></code></dd>