<divclass="col-first even-row-color method-summary-table method-summary-table-tab1"><code>static <T extends <ahref="../../../../org/bukkit/Keyed.html"title="interface in org.bukkit">Keyed</a>><br><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="Reference.html"title="interface in io.papermc.paper.registry">Reference</a><T></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1"><code><ahref="#create(org.bukkit.Registry,org.bukkit.NamespacedKey)"class="member-name-link">create</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="../../../../org/bukkit/Registry.html"title="interface in org.bukkit">Registry</a><T> registry,
<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="../../../../org/bukkit/NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</code></div>
<divclass="block">Gets the value from the registry with the key.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.Keyed">Methods inherited from interface org.bukkit.<ahref="../../../../org/bukkit/Keyed.html"title="interface in org.bukkit">Keyed</a></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="Reference.html"title="type parameter in Reference">T</a></span> <spanclass="element-name">value</span>()</div>
<divclass="block">Gets the value from the registry with the key.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the value</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/NoSuchElementException.html"title="class or interface in java.util"class="external-link">NoSuchElementException</a></code> - if there is no value with this key</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="valueOrNull()">
<h3>valueOrNull</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="Reference.html"title="type parameter in Reference">T</a></span> <spanclass="element-name">valueOrNull</span>()</div>
<divclass="block">Gets the value from the registry with the key.</div>
<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">static</span> <spanclass="type-parameters"><T extends <ahref="../../../../org/bukkit/Keyed.html"title="interface in org.bukkit">Keyed</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="Reference.html"title="interface in io.papermc.paper.registry">Reference</a><T></span> <spanclass="element-name">create</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="../../../../org/bukkit/Registry.html"title="interface in org.bukkit">Registry</a><T> registry,
<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="../../../../org/bukkit/NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</span></div>
<divclass="block">Creates a reference to a registered value.</div>
<dlclass="notes">
<dt>Type Parameters:</dt>
<dd><code>T</code> - the type of the value</dd>
<dt>Parameters:</dt>
<dd><code>registry</code> - the registry the value is located in</dd>