mirror of
https://github.com/AtlasMediaGroup/Scissors-Website.git
synced 2024-11-16 21:56:11 +00:00
794 lines
75 KiB
HTML
794 lines
75 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (17) -->
|
|
<title>UnsafeValues (Scissors-API 1.17.1-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, interface: UnsafeValues">
|
|
<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.5.1.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="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>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method-summary">Method</a></li>
|
|
</ul>
|
|
<ul class="sub-nav-list">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </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</a></div>
|
|
<h1 title="Interface UnsafeValues" class="title">Interface UnsafeValues</h1>
|
|
</div>
|
|
<section class="class-description" id="class-description">
|
|
<hr>
|
|
<div class="type-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
|
</span><span class="modifiers">public interface </span><span class="element-name type-name-label">UnsafeValues</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">This interface provides value conversions that may be specific to a
|
|
runtime, or have arbitrary meaning (read: magic values).
|
|
<p>
|
|
Their existence and behavior is not guaranteed across future versions. They
|
|
may be poorly named, throw exceptions, have misleading parameters, or any
|
|
other bad programming practice.</div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<!-- ========== 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-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static 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-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</button><button id="method-summary-table-tab5" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab5', 3)" class="table-tab">Default Methods</button><button id="method-summary-table-tab6" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab6', 3)" class="table-tab">Deprecated 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-tab3 method-summary-table-tab6"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#checkSupported(org.bukkit.plugin.PluginDescriptionFile)" class="member-name-link">checkSupported</a><wbr>(<a href="plugin/PluginDescriptionFile.html" title="class in org.bukkit.plugin">PluginDescriptionFile</a> pdf)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://jd.adventure.kyori.net/text-serializer-gson/4.9.3/net/kyori/adventure/text/serializer/gson/GsonComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.gson" class="external-link">GsonComponentSerializer</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#colorDownsamplingGsonComponentSerializer()" class="member-name-link">colorDownsamplingGsonComponentSerializer</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/flattener/ComponentFlattener.html" title="class or interface in net.kyori.adventure.text.flattener" class="external-link">ComponentFlattener</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#componentFlattener()" class="member-name-link">componentFlattener</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code>default <a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code><a href="#deserializeEntity(byte%5B%5D,org.bukkit.World)" class="member-name-link">deserializeEntity</a><wbr>(byte[] data,
|
|
<a href="World.html" title="interface in org.bukkit">World</a> world)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#deserializeEntity(byte%5B%5D,org.bukkit.World,boolean)" class="member-name-link">deserializeEntity</a><wbr>(byte[] data,
|
|
<a href="World.html" title="interface in org.bukkit">World</a> world,
|
|
boolean preserveUUID)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#deserializeItem(byte%5B%5D)" class="member-name-link">deserializeItem</a><wbr>(byte[] data)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="Material.html" title="enum class in org.bukkit">Material</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#fromLegacy(org.bukkit.Material)" class="member-name-link">fromLegacy</a><wbr>(<a href="Material.html" title="enum class in org.bukkit">Material</a> material)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="Material.html" title="enum class in org.bukkit">Material</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#fromLegacy(org.bukkit.material.MaterialData)" class="member-name-link">fromLegacy</a><wbr>(<a href="material/MaterialData.html" title="class in org.bukkit.material">MaterialData</a> material)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="Material.html" title="enum class in org.bukkit">Material</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#fromLegacy(org.bukkit.material.MaterialData,boolean)" class="member-name-link">fromLegacy</a><wbr>(<a href="material/MaterialData.html" title="class in org.bukkit.material">MaterialData</a> material,
|
|
boolean itemPriority)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#fromLegacy(org.bukkit.Material,byte)" class="member-name-link">fromLegacy</a><wbr>(<a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
|
byte data)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>int</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getDataVersion()" class="member-name-link">getDataVersion</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="attribute/Attributable.html" title="interface in org.bukkit.attribute">Attributable</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getDefaultEntityAttributes(org.bukkit.NamespacedKey)" class="member-name-link">getDefaultEntityAttributes</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> entityKey)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Gets the default attributes for the entity represented by the namespaced key.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://guava.dev/releases/21.0/api/docs/com/google/common/collect/Multimap.html" title="class or interface in com.google.common.collect" class="external-link">Multimap</a><<a href="attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>,<wbr><a href="attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getItemAttributes(org.bukkit.Material,org.bukkit.inventory.EquipmentSlot)" class="member-name-link">getItemAttributes</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
|
<a href="inventory/EquipmentSlot.html" title="enum class in org.bukkit.inventory">EquipmentSlot</a> equipmentSlot)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Returns an immutable multimap of attributes for the material and slot.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="../../io/papermc/paper/inventory/ItemRarity.html" title="enum class in io.papermc.paper.inventory">ItemRarity</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getItemRarity(org.bukkit.Material)" class="member-name-link">getItemRarity</a><wbr>(<a href="Material.html" title="enum class in org.bukkit">Material</a> material)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Gets the item rarity of a material.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="../../io/papermc/paper/inventory/ItemRarity.html" title="enum class in io.papermc.paper.inventory">ItemRarity</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getItemStackRarity(org.bukkit.inventory.ItemStack)" class="member-name-link">getItemStackRarity</a><wbr>(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> itemStack)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Gets the item rarity of the itemstack.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="Material.html" title="enum class in org.bukkit">Material</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getMaterial(java.lang.String,int)" class="member-name-link">getMaterial</a><wbr>(<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> material,
|
|
int version)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>int</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getProtocolVersion()" class="member-name-link">getProtocolVersion</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Returns the server's protocol version.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><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></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getTimingsServerName()" class="member-name-link">getTimingsServerName</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Server name to report to timings v2</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><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></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getTranslationKey(org.bukkit.block.Block)" class="member-name-link">getTranslationKey</a><wbr>(<a href="block/Block.html" title="interface in org.bukkit.block">Block</a> block)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the Block, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><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></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getTranslationKey(org.bukkit.entity.EntityType)" class="member-name-link">getTranslationKey</a><wbr>(<a href="entity/EntityType.html" title="enum class in org.bukkit.entity">EntityType</a> type)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the EntityType, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.<br>
|
|
This is <code>null</code>, when the EntityType isn't known to NMS (custom entities)</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><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></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getTranslationKey(org.bukkit.inventory.ItemStack)" class="member-name-link">getTranslationKey</a><wbr>(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> itemStack)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the ItemStack, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.<br></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><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></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#getTranslationKey(org.bukkit.Material)" class="member-name-link">getTranslationKey</a><wbr>(<a href="Material.html" title="enum class in org.bukkit">Material</a> mat)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the Material, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code>default <a href="../../com/destroystokyo/paper/util/VersionFetcher.html" title="interface in com.destroystokyo.paper.util">VersionFetcher</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code><a href="#getVersionFetcher()" class="member-name-link">getVersionFetcher</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Called once by the version command on first use, then cached.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://jd.adventure.kyori.net/text-serializer-gson/4.9.3/net/kyori/adventure/text/serializer/gson/GsonComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.gson" class="external-link">GsonComponentSerializer</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#gsonComponentSerializer()" class="member-name-link">gsonComponentSerializer</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#hasDefaultEntityAttributes(org.bukkit.NamespacedKey)" class="member-name-link">hasDefaultEntityAttributes</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> entityKey)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Checks if the entity represented by the namespaced key has default attributes.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>boolean</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#isCollidable(org.bukkit.Material)" class="member-name-link">isCollidable</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Checks if this material is collidable.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab6"><code>static boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab6"><code><a href="#isLegacyPlugin(org.bukkit.plugin.Plugin)" class="member-name-link">isLegacyPlugin</a><wbr>(<a href="plugin/Plugin.html" title="interface in org.bukkit.plugin">Plugin</a> plugin)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>boolean</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#isSupportedApiVersion(java.lang.String)" class="member-name-link">isSupportedApiVersion</a><wbr>(<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> apiVersion)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#isValidRepairItemStack(org.bukkit.inventory.ItemStack,org.bukkit.inventory.ItemStack)" class="member-name-link">isValidRepairItemStack</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> itemToBeRepaired,
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> repairMaterial)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Checks if an itemstack can be repaired with another itemstack.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://jd.adventure.kyori.net/text-serializer-legacy/4.9.3/net/kyori/adventure/text/serializer/legacy/LegacyComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.legacy" class="external-link">LegacyComponentSerializer</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#legacyComponentSerializer()" class="member-name-link">legacyComponentSerializer</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="advancement/Advancement.html" title="interface in org.bukkit.advancement">Advancement</a></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#loadAdvancement(org.bukkit.NamespacedKey,java.lang.String)" class="member-name-link">loadAdvancement</a><wbr>(<a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key,
|
|
<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> advancement)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Load an advancement represented by the specified string into the server.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#modifyItemStack(org.bukkit.inventory.ItemStack,java.lang.String)" class="member-name-link">modifyItemStack</a><wbr>(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> stack,
|
|
<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> arguments)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>int</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#nextEntityId()" class="member-name-link">nextEntityId</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Creates and returns the next EntityId available.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="https://jd.adventure.kyori.net/text-serializer-plain/4.9.3/net/kyori/adventure/text/serializer/plain/PlainComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.plain" class="external-link">PlainComponentSerializer</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#plainComponentSerializer()" class="member-name-link">plainComponentSerializer</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>byte[]</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#processClass(org.bukkit.plugin.PluginDescriptionFile,java.lang.String,byte%5B%5D)" class="member-name-link">processClass</a><wbr>(<a href="plugin/PluginDescriptionFile.html" title="class in org.bukkit.plugin">PluginDescriptionFile</a> pdf,
|
|
<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,
|
|
byte[] clazz)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>boolean</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#removeAdvancement(org.bukkit.NamespacedKey)" class="member-name-link">removeAdvancement</a><wbr>(<a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Delete an advancement which was loaded and saved by
|
|
<a href="#loadAdvancement(org.bukkit.NamespacedKey,java.lang.String)"><code>loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)</code></a>.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#reportTimings()" class="member-name-link">reportTimings</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>byte[]</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#serializeEntity(org.bukkit.entity.Entity)" class="member-name-link">serializeEntity</a><wbr>(<a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a> entity)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>byte[]</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#serializeItem(org.bukkit.inventory.ItemStack)" class="member-name-link">serializeItem</a><wbr>(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> item)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="Material.html" title="enum class in org.bukkit">Material</a></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code><a href="#toLegacy(org.bukkit.Material)" class="member-name-link">toLegacy</a><wbr>(<a href="Material.html" title="enum class in org.bukkit">Material</a> material)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6">
|
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<section class="details">
|
|
<ul class="details-list">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<li>
|
|
<section class="method-details" id="method-detail">
|
|
<h2>Method Details</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="componentFlattener()">
|
|
<h3>componentFlattener</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/flattener/ComponentFlattener.html" title="class or interface in net.kyori.adventure.text.flattener" class="external-link">ComponentFlattener</a></span> <span class="element-name">componentFlattener</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="plainComponentSerializer()">
|
|
<h3>plainComponentSerializer</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://jd.adventure.kyori.net/text-serializer-plain/4.9.3/net/kyori/adventure/text/serializer/plain/PlainComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.plain" class="external-link">PlainComponentSerializer</a></span> <span class="element-name">plainComponentSerializer</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="gsonComponentSerializer()">
|
|
<h3>gsonComponentSerializer</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://jd.adventure.kyori.net/text-serializer-gson/4.9.3/net/kyori/adventure/text/serializer/gson/GsonComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.gson" class="external-link">GsonComponentSerializer</a></span> <span class="element-name">gsonComponentSerializer</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="colorDownsamplingGsonComponentSerializer()">
|
|
<h3>colorDownsamplingGsonComponentSerializer</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://jd.adventure.kyori.net/text-serializer-gson/4.9.3/net/kyori/adventure/text/serializer/gson/GsonComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.gson" class="external-link">GsonComponentSerializer</a></span> <span class="element-name">colorDownsamplingGsonComponentSerializer</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="legacyComponentSerializer()">
|
|
<h3>legacyComponentSerializer</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="https://jd.adventure.kyori.net/text-serializer-legacy/4.9.3/net/kyori/adventure/text/serializer/legacy/LegacyComponentSerializer.html" title="class or interface in net.kyori.adventure.text.serializer.legacy" class="external-link">LegacyComponentSerializer</a></span> <span class="element-name">legacyComponentSerializer</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="reportTimings()">
|
|
<h3>reportTimings</h3>
|
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">reportTimings</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="toLegacy(org.bukkit.Material)">
|
|
<h3>toLegacy</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="Material.html" title="enum class in org.bukkit">Material</a></span> <span class="element-name">toLegacy</span><wbr><span class="parameters">(<a href="Material.html" title="enum class in org.bukkit">Material</a> material)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="fromLegacy(org.bukkit.Material)">
|
|
<h3>fromLegacy</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="Material.html" title="enum class in org.bukkit">Material</a></span> <span class="element-name">fromLegacy</span><wbr><span class="parameters">(<a href="Material.html" title="enum class in org.bukkit">Material</a> material)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="fromLegacy(org.bukkit.material.MaterialData)">
|
|
<h3>fromLegacy</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="Material.html" title="enum class in org.bukkit">Material</a></span> <span class="element-name">fromLegacy</span><wbr><span class="parameters">(<a href="material/MaterialData.html" title="class in org.bukkit.material">MaterialData</a> material)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="fromLegacy(org.bukkit.material.MaterialData,boolean)">
|
|
<h3>fromLegacy</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="Material.html" title="enum class in org.bukkit">Material</a></span> <span class="element-name">fromLegacy</span><wbr><span class="parameters">(<a href="material/MaterialData.html" title="class in org.bukkit.material">MaterialData</a> material,
|
|
boolean itemPriority)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="fromLegacy(org.bukkit.Material,byte)">
|
|
<h3>fromLegacy</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></span> <span class="element-name">fromLegacy</span><wbr><span class="parameters">(<a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
|
byte data)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getMaterial(java.lang.String,int)">
|
|
<h3>getMaterial</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="Material.html" title="enum class in org.bukkit">Material</a></span> <span class="element-name">getMaterial</span><wbr><span class="parameters">(<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> material,
|
|
int version)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getDataVersion()">
|
|
<h3>getDataVersion</h3>
|
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getDataVersion</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="modifyItemStack(org.bukkit.inventory.ItemStack,java.lang.String)">
|
|
<h3>modifyItemStack</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></span> <span class="element-name">modifyItemStack</span><wbr><span class="parameters">(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> stack,
|
|
<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> arguments)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="checkSupported(org.bukkit.plugin.PluginDescriptionFile)">
|
|
<h3>checkSupported</h3>
|
|
<div class="member-signature"><span class="return-type">void</span> <span class="element-name">checkSupported</span><wbr><span class="parameters">(<a href="plugin/PluginDescriptionFile.html" title="class in org.bukkit.plugin">PluginDescriptionFile</a> pdf)</span>
|
|
throws <span class="exceptions"><a href="plugin/InvalidPluginException.html" title="class in org.bukkit.plugin">InvalidPluginException</a></span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<dl class="notes">
|
|
<dt>Throws:</dt>
|
|
<dd><code><a href="plugin/InvalidPluginException.html" title="class in org.bukkit.plugin">InvalidPluginException</a></code></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="processClass(org.bukkit.plugin.PluginDescriptionFile,java.lang.String,byte[])">
|
|
<h3>processClass</h3>
|
|
<div class="member-signature"><span class="return-type">byte[]</span> <span class="element-name">processClass</span><wbr><span class="parameters">(<a href="plugin/PluginDescriptionFile.html" title="class in org.bukkit.plugin">PluginDescriptionFile</a> pdf,
|
|
<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,
|
|
byte[] clazz)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="loadAdvancement(org.bukkit.NamespacedKey,java.lang.String)">
|
|
<h3>loadAdvancement</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="advancement/Advancement.html" title="interface in org.bukkit.advancement">Advancement</a></span> <span class="element-name">loadAdvancement</span><wbr><span class="parameters">(<a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key,
|
|
<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> advancement)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Load an advancement represented by the specified string into the server.
|
|
The advancement format is governed by Minecraft and has no specified
|
|
layout.
|
|
<br>
|
|
It is currently a JSON object, as described by the Minecraft Wiki:
|
|
http://minecraft.gamepedia.com/Advancements
|
|
<br>
|
|
Loaded advancements will be stored and persisted across server restarts
|
|
and reloads.
|
|
<br>
|
|
Callers should be prepared for <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link"><code>Exception</code></a> to be thrown.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>key</code> - the unique advancement key</dd>
|
|
<dd><code>advancement</code> - representation of the advancement</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the loaded advancement or null if an error occurred</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="removeAdvancement(org.bukkit.NamespacedKey)">
|
|
<h3>removeAdvancement</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">removeAdvancement</span><wbr><span class="parameters">(<a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Delete an advancement which was loaded and saved by
|
|
<a href="#loadAdvancement(org.bukkit.NamespacedKey,java.lang.String)"><code>loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)</code></a>.
|
|
<br>
|
|
This method will only remove advancement from persistent storage. It
|
|
should be accompanied by a call to <a href="Server.html#reloadData()"><code>Server.reloadData()</code></a> in order
|
|
to fully remove it from the running instance.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>key</code> - the unique advancement key</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>true if a file matching this key was found and deleted</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getTimingsServerName()">
|
|
<h3>getTimingsServerName</h3>
|
|
<div class="member-signature"><span class="return-type"><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></span> <span class="element-name">getTimingsServerName</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Server name to report to timings v2</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>name</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getVersionFetcher()">
|
|
<h3>getVersionFetcher</h3>
|
|
<div class="member-signature"><span class="modifiers">default</span> <span class="return-type"><a href="../../com/destroystokyo/paper/util/VersionFetcher.html" title="interface in com.destroystokyo.paper.util">VersionFetcher</a></span> <span class="element-name">getVersionFetcher</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Called once by the version command on first use, then cached.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="isSupportedApiVersion(java.lang.String)">
|
|
<h3>isSupportedApiVersion</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isSupportedApiVersion</span><wbr><span class="parameters">(<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> apiVersion)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="isLegacyPlugin(org.bukkit.plugin.Plugin)">
|
|
<h3>isLegacyPlugin</h3>
|
|
<div class="member-signature"><span class="modifiers">static</span> <span class="return-type">boolean</span> <span class="element-name">isLegacyPlugin</span><wbr><span class="parameters">(<a href="plugin/Plugin.html" title="interface in org.bukkit.plugin">Plugin</a> plugin)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="serializeItem(org.bukkit.inventory.ItemStack)">
|
|
<h3>serializeItem</h3>
|
|
<div class="member-signature"><span class="return-type">byte[]</span> <span class="element-name">serializeItem</span><wbr><span class="parameters">(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> item)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="deserializeItem(byte[])">
|
|
<h3>deserializeItem</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></span> <span class="element-name">deserializeItem</span><wbr><span class="parameters">(byte[] data)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="serializeEntity(org.bukkit.entity.Entity)">
|
|
<h3>serializeEntity</h3>
|
|
<div class="member-signature"><span class="return-type">byte[]</span> <span class="element-name">serializeEntity</span><wbr><span class="parameters">(<a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a> entity)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="deserializeEntity(byte[],org.bukkit.World)">
|
|
<h3>deserializeEntity</h3>
|
|
<div class="member-signature"><span class="modifiers">default</span> <span class="return-type"><a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a></span> <span class="element-name">deserializeEntity</span><wbr><span class="parameters">(byte[] data,
|
|
<a href="World.html" title="interface in org.bukkit">World</a> world)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="deserializeEntity(byte[],org.bukkit.World,boolean)">
|
|
<h3>deserializeEntity</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a></span> <span class="element-name">deserializeEntity</span><wbr><span class="parameters">(byte[] data,
|
|
<a href="World.html" title="interface in org.bukkit">World</a> world,
|
|
boolean preserveUUID)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getTranslationKey(org.bukkit.Material)">
|
|
<h3>getTranslationKey</h3>
|
|
<div class="member-signature"><span class="return-type"><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></span> <span class="element-name">getTranslationKey</span><wbr><span class="parameters">(<a href="Material.html" title="enum class in org.bukkit">Material</a> mat)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the Material, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the translation key</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getTranslationKey(org.bukkit.block.Block)">
|
|
<h3>getTranslationKey</h3>
|
|
<div class="member-signature"><span class="return-type"><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></span> <span class="element-name">getTranslationKey</span><wbr><span class="parameters">(<a href="block/Block.html" title="interface in org.bukkit.block">Block</a> block)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the Block, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the translation key</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getTranslationKey(org.bukkit.entity.EntityType)">
|
|
<h3>getTranslationKey</h3>
|
|
<div class="member-signature"><span class="return-type"><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></span> <span class="element-name">getTranslationKey</span><wbr><span class="parameters">(<a href="entity/EntityType.html" title="enum class in org.bukkit.entity">EntityType</a> type)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the EntityType, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.<br>
|
|
This is <code>null</code>, when the EntityType isn't known to NMS (custom entities)</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the translation key</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getTranslationKey(org.bukkit.inventory.ItemStack)">
|
|
<h3>getTranslationKey</h3>
|
|
<div class="member-signature"><span class="return-type"><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></span> <span class="element-name">getTranslationKey</span><wbr><span class="parameters">(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> itemStack)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Return the translation key for the ItemStack, so the client can translate it into the active
|
|
locale when using a <a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/TranslatableComponent.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>TranslatableComponent</code></a>.<br></div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the translation key</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="nextEntityId()">
|
|
<h3>nextEntityId</h3>
|
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">nextEntityId</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Creates and returns the next EntityId available.
|
|
<p>
|
|
Use this when sending custom packets, so that there are no collisions on the client or server.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getItemRarity(org.bukkit.Material)">
|
|
<h3>getItemRarity</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="../../io/papermc/paper/inventory/ItemRarity.html" title="enum class in io.papermc.paper.inventory">ItemRarity</a></span> <span class="element-name">getItemRarity</span><wbr><span class="parameters">(<a href="Material.html" title="enum class in org.bukkit">Material</a> material)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Gets the item rarity of a material. The material <b>MUST</b> be an item.
|
|
Use <a href="Material.html#isItem()"><code>Material.isItem()</code></a> before this.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>material</code> - the material to get the rarity of</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the item rarity</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getItemStackRarity(org.bukkit.inventory.ItemStack)">
|
|
<h3>getItemStackRarity</h3>
|
|
<div class="member-signature"><span class="return-type"><a href="../../io/papermc/paper/inventory/ItemRarity.html" title="enum class in io.papermc.paper.inventory">ItemRarity</a></span> <span class="element-name">getItemStackRarity</span><wbr><span class="parameters">(<a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> itemStack)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Gets the item rarity of the itemstack. The rarity can change based on enchantements.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>itemStack</code> - the itemstack to get the rarity of</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the itemstack rarity</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="isValidRepairItemStack(org.bukkit.inventory.ItemStack,org.bukkit.inventory.ItemStack)">
|
|
<h3>isValidRepairItemStack</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isValidRepairItemStack</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/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/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> itemToBeRepaired,
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/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/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> repairMaterial)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Checks if an itemstack can be repaired with another itemstack.
|
|
Returns false if either argument's type is not an item (<a href="Material.html#isItem()"><code>Material.isItem()</code></a>).</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>itemToBeRepaired</code> - the itemstack to be repaired</dd>
|
|
<dd><code>repairMaterial</code> - the repair material</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>true if valid repair, false if not</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getItemAttributes(org.bukkit.Material,org.bukkit.inventory.EquipmentSlot)">
|
|
<h3>getItemAttributes</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
</span><span class="return-type"><a href="https://guava.dev/releases/21.0/api/docs/com/google/common/collect/Multimap.html" title="class or interface in com.google.common.collect" class="external-link">Multimap</a><<a href="attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>,<wbr><a href="attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>></span> <span class="element-name">getItemAttributes</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/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/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
<a href="inventory/EquipmentSlot.html" title="enum class in org.bukkit.inventory">EquipmentSlot</a> equipmentSlot)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Returns an immutable multimap of attributes for the material and slot.
|
|
<a href="Material.html#isItem()"><code>Material.isItem()</code></a> must be true for this material.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>material</code> - the material</dd>
|
|
<dd><code>equipmentSlot</code> - the slot to get the attributes for</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>an immutable multimap of attributes</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> - if <a href="Material.html#isItem()"><code>Material.isItem()</code></a> is false</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getProtocolVersion()">
|
|
<h3>getProtocolVersion</h3>
|
|
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getProtocolVersion</span>()</div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Returns the server's protocol version.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the server's protocol version</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="hasDefaultEntityAttributes(org.bukkit.NamespacedKey)">
|
|
<h3>hasDefaultEntityAttributes</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">hasDefaultEntityAttributes</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/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/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> entityKey)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Checks if the entity represented by the namespaced key has default attributes.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>entityKey</code> - the entity's key</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>true if it has default attributes</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getDefaultEntityAttributes(org.bukkit.NamespacedKey)">
|
|
<h3>getDefaultEntityAttributes</h3>
|
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
|
</span><span class="return-type"><a href="attribute/Attributable.html" title="interface in org.bukkit.attribute">Attributable</a></span> <span class="element-name">getDefaultEntityAttributes</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/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/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> entityKey)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Gets the default attributes for the entity represented by the namespaced key.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>entityKey</code> - the entity's key</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>an unmodifiable instance of Attributable for reading default attributes.</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> - if the entity does not exist of have default attributes (use <a href="#hasDefaultEntityAttributes(org.bukkit.NamespacedKey)"><code>hasDefaultEntityAttributes(NamespacedKey)</code></a> first)</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="isCollidable(org.bukkit.Material)">
|
|
<h3>isCollidable</h3>
|
|
<div class="member-signature"><span class="return-type">boolean</span> <span class="element-name">isCollidable</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/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/21.0.1/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material)</span></div>
|
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
|
<div class="block">Checks if this material is collidable.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>material</code> - the material to check</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>true if collidable</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> - if <a href="Material.html#isBlock()"><code>Material.isBlock()</code></a> is false</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|