Scissors-Website/public/javadoc/1.17.1/org/bukkit/inventory/meta/ItemMeta.html
2022-07-05 18:33:56 -05:00

1281 lines
130 KiB
HTML

<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>ItemMeta (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.inventory.meta, interface: ItemMeta">
<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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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>&nbsp;<a href="package-summary.html">org.bukkit.inventory.meta</a></div>
<h1 title="Interface ItemMeta" class="title">Interface ItemMeta</h1>
</div>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>All Superinterfaces:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code>, <code><a href="../../configuration/serialization/ConfigurationSerializable.html" title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></code>, <code><a href="../../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a></code></dd>
</dl>
<dl class="notes">
<dt>All Known Subinterfaces:</dt>
<dd><code><a href="../../../../com/destroystokyo/paper/inventory/meta/ArmorStandMeta.html" title="interface in com.destroystokyo.paper.inventory.meta">ArmorStandMeta</a></code>, <code><a href="AxolotlBucketMeta.html" title="interface in org.bukkit.inventory.meta">AxolotlBucketMeta</a></code>, <code><a href="BannerMeta.html" title="interface in org.bukkit.inventory.meta">BannerMeta</a></code>, <code><a href="BlockDataMeta.html" title="interface in org.bukkit.inventory.meta">BlockDataMeta</a></code>, <code><a href="BlockStateMeta.html" title="interface in org.bukkit.inventory.meta">BlockStateMeta</a></code>, <code><a href="BookMeta.html" title="interface in org.bukkit.inventory.meta">BookMeta</a></code>, <code><a href="BundleMeta.html" title="interface in org.bukkit.inventory.meta">BundleMeta</a></code>, <code><a href="CompassMeta.html" title="interface in org.bukkit.inventory.meta">CompassMeta</a></code>, <code><a href="CrossbowMeta.html" title="interface in org.bukkit.inventory.meta">CrossbowMeta</a></code>, <code><a href="Damageable.html" title="interface in org.bukkit.inventory.meta">Damageable</a></code>, <code><a href="EnchantmentStorageMeta.html" title="interface in org.bukkit.inventory.meta">EnchantmentStorageMeta</a></code>, <code><a href="FireworkEffectMeta.html" title="interface in org.bukkit.inventory.meta">FireworkEffectMeta</a></code>, <code><a href="FireworkMeta.html" title="interface in org.bukkit.inventory.meta">FireworkMeta</a></code>, <code><a href="KnowledgeBookMeta.html" title="interface in org.bukkit.inventory.meta">KnowledgeBookMeta</a></code>, <code><a href="LeatherArmorMeta.html" title="interface in org.bukkit.inventory.meta">LeatherArmorMeta</a></code>, <code><a href="MapMeta.html" title="interface in org.bukkit.inventory.meta">MapMeta</a></code>, <code><a href="PotionMeta.html" title="interface in org.bukkit.inventory.meta">PotionMeta</a></code>, <code><a href="SkullMeta.html" title="interface in org.bukkit.inventory.meta">SkullMeta</a></code>, <code><a href="SpawnEggMeta.html" title="interface in org.bukkit.inventory.meta">SpawnEggMeta</a></code>, <code><a href="SuspiciousStewMeta.html" title="interface in org.bukkit.inventory.meta">SuspiciousStewMeta</a></code>, <code><a href="TropicalFishBucketMeta.html" title="interface in org.bukkit.inventory.meta">TropicalFishBucketMeta</a></code></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">ItemMeta</span><span class="extends-implements">
extends <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a>, <a href="../../configuration/serialization/ConfigurationSerializable.html" title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a>, <a href="../../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a></span></div>
<div class="block">This type represents the storage mechanism for auxiliary item data.
<p>
An implementation will handle the creation and application for ItemMeta.
This class should not be implemented by a plugin in a live environment.</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-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-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"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#addAttributeModifier(org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier)" class="member-name-link">addAttributeModifier</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute,
<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="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>&nbsp;modifier)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Add an Attribute and it's Modifier.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#addEnchant(org.bukkit.enchantments.Enchantment,int,boolean)" class="member-name-link">addEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench,
int&nbsp;level,
boolean&nbsp;ignoreLevelRestriction)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Adds the specified enchantment to this item meta.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#addItemFlags(org.bukkit.inventory.ItemFlag...)" class="member-name-link">addItemFlags</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="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>...&nbsp;itemFlags)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Set itemflags which should be ignored when rendering a ItemStack in the Client.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><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="ItemMeta.html" title="interface in org.bukkit.inventory.meta">ItemMeta</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#displayName()" class="member-name-link">displayName</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the display name.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#displayName(net.kyori.adventure.text.Component)" class="member-name-link">displayName</a><wbr>(<a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>&nbsp;displayName)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the display name.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <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>&lt;<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>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getAttributeModifiers()" class="member-name-link">getAttributeModifiers</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Return an immutable copy of all Attributes and
their modifiers in this ItemMeta.<br>
Returns null if none exist.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getAttributeModifiers(org.bukkit.attribute.Attribute)" class="member-name-link">getAttributeModifiers</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Return an immutable copy of all <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s
for a given <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a></div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><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://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>&lt;<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>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getAttributeModifiers(org.bukkit.inventory.EquipmentSlot)" class="member-name-link">getAttributeModifiers</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="../EquipmentSlot.html" title="enum class in org.bukkit.inventory">EquipmentSlot</a>&nbsp;slot)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Return an immutable copy of all <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>s and their
<a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s for a given <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a>.<br>
Any <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a> that does have have a given
<a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a> will be returned.</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/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;</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="#getCanDestroy()" class="member-name-link">getCanDestroy</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 class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#getDestroyableKeys()"><code>getDestroyableKeys()</code></a> as a replacement</div>
</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/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;</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="#getCanPlaceOn()" class="member-name-link">getCanPlaceOn</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 class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#getPlaceableKeys()"><code>getPlaceableKeys()</code></a> as a replacement</div>
</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getCustomModelData()" class="member-name-link">getCustomModelData</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the custom model data that is set.</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://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="tags/CustomItemTagContainer.html" title="interface in org.bukkit.inventory.meta.tags">CustomItemTagContainer</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="#getCustomTagContainer()" class="member-name-link">getCustomTagContainer</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 class="deprecation-comment">this API part has been replaced by the <a href="../../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence"><code>PersistentDataHolder</code></a> API.</div>
</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getDestroyableKeys()" class="member-name-link">getDestroyableKeys</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of namespaced keys that the item can destroy in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</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><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://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="#getDisplayName()" class="member-name-link">getDisplayName</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 class="deprecation-comment">in favour of <a href="#displayName()"><code>displayName()</code></a></div>
</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://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/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</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="#getDisplayNameComponent()" class="member-name-link">getDisplayNameComponent</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 class="deprecation-comment">use <a href="#displayName()"><code>displayName()</code></a></div>
</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getEnchantLevel(org.bukkit.enchantments.Enchantment)" class="member-name-link">getEnchantLevel</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for the level of the specified enchantment.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getEnchants()" class="member-name-link">getEnchants</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns a copy the enchantments in this ItemMeta.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getItemFlags()" class="member-name-link">getItemFlags</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Get current set itemFlags.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><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://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"><code><a href="#getLocalizedName()" class="member-name-link">getLocalizedName</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the localized display name that is set.</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://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<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>&gt;</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="#getLore()" class="member-name-link">getLore</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 class="deprecation-comment">in favour of <a href="#lore()"><code>lore()</code></a></div>
</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://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</a>[]&gt;</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="#getLoreComponents()" class="member-name-link">getLoreComponents</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 class="deprecation-comment">use <a href="#lore()"><code>lore()</code></a></div>
</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getPlaceableKeys()" class="member-name-link">getPlaceableKeys</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of namespaced keys that the item can be placed on in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasAttributeModifiers()" class="member-name-link">hasAttributeModifiers</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for the existence of any AttributeModifiers.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasConflictingEnchant(org.bukkit.enchantments.Enchantment)" class="member-name-link">hasConflictingEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks if the specified enchantment conflicts with any enchantments in
this ItemMeta.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasCustomModelData()" class="member-name-link">hasCustomModelData</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for existence of custom model data.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasDestroyableKeys()" class="member-name-link">hasDestroyableKeys</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for the existence of any keys that the item can destroy</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasDisplayName()" class="member-name-link">hasDisplayName</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for existence of a display name.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasEnchant(org.bukkit.enchantments.Enchantment)" class="member-name-link">hasEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for existence of the specified enchantment.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasEnchants()" class="member-name-link">hasEnchants</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for the existence of any enchantments.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasItemFlag(org.bukkit.inventory.ItemFlag)" class="member-name-link">hasItemFlag</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="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>&nbsp;flag)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Check if the specified flag is present on this item.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasLocalizedName()" class="member-name-link">hasLocalizedName</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for existence of a localized name.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasLore()" class="member-name-link">hasLore</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for existence of lore.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#hasPlaceableKeys()" class="member-name-link">hasPlaceableKeys</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Checks for the existence of any keys that the item can be placed on</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#isUnbreakable()" class="member-name-link">isUnbreakable</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Return if the unbreakable tag is true.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#lore()" class="member-name-link">lore</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the lore.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#lore(java.util.List)" class="member-name-link">lore</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>&gt;&nbsp;lore)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the lore.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#removeAttributeModifier(org.bukkit.attribute.Attribute)" class="member-name-link">removeAttributeModifier</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Remove all <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s associated with the given
<a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#removeAttributeModifier(org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier)" class="member-name-link">removeAttributeModifier</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute,
<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="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>&nbsp;modifier)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Remove a specific <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a> and <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#removeAttributeModifier(org.bukkit.inventory.EquipmentSlot)" class="member-name-link">removeAttributeModifier</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="../EquipmentSlot.html" title="enum class in org.bukkit.inventory">EquipmentSlot</a>&nbsp;slot)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Remove all <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>s and <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s for a
given <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a>.<br>
If the given <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a> is null, this will remove all
<a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s that do not have an EquipmentSlot set.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#removeEnchant(org.bukkit.enchantments.Enchantment)" class="member-name-link">removeEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Removes the specified enchantment from this item meta.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#removeItemFlags(org.bukkit.inventory.ItemFlag...)" class="member-name-link">removeItemFlags</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="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>...&nbsp;itemFlags)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Remove specific set of itemFlags.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setAttributeModifiers(com.google.common.collect.Multimap)" class="member-name-link">setAttributeModifiers</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <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>&lt;<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>&gt;&nbsp;attributeModifiers)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Set all <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>s and their <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s.</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>void</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="#setCanDestroy(java.util.Set)" class="member-name-link">setCanDestroy</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;&nbsp;canDestroy)</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 class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#setDestroyableKeys(java.util.Collection)"><code>setDestroyableKeys(Collection)</code></a> as a replacement</div>
</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="#setCanPlaceOn(java.util.Set)" class="member-name-link">setCanPlaceOn</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;&nbsp;canPlaceOn)</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 class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#setPlaceableKeys(java.util.Collection)"><code>setPlaceableKeys(Collection)</code></a> as a replacement</div>
</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setCustomModelData(java.lang.Integer)" class="member-name-link">setCustomModelData</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>&nbsp;data)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the custom model data.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setDestroyableKeys(java.util.Collection)" class="member-name-link">setDestroyableKeys</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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;&nbsp;canDestroy)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the collection of namespaced keys that the item can destroy in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</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>void</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="#setDisplayName(java.lang.String)" class="member-name-link">setDisplayName</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;name)</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 class="deprecation-comment">in favour of <a href="#displayName(net.kyori.adventure.text.Component)"><code>displayName(net.kyori.adventure.text.Component)</code></a></div>
</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="#setDisplayNameComponent(net.md_5.bungee.api.chat.BaseComponent%5B%5D)" class="member-name-link">setDisplayNameComponent</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</a>[]&nbsp;component)</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 class="deprecation-comment">use <a href="#displayName(net.kyori.adventure.text.Component)"><code>displayName(Component)</code></a></div>
</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setLocalizedName(java.lang.String)" class="member-name-link">setLocalizedName</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;name)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the localized name.</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="#setLore(java.util.List)" class="member-name-link">setLore</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<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>&gt;&nbsp;lore)</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 class="deprecation-comment">in favour of <a href="#lore(java.util.List)"><code>lore(List)</code></a></div>
</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>void</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="#setLoreComponents(java.util.List)" class="member-name-link">setLoreComponents</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</a>[]&gt;&nbsp;lore)</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 class="deprecation-comment">use <a href="#lore(java.util.List)"><code>lore(List)</code></a></div>
</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setPlaceableKeys(java.util.Collection)" class="member-name-link">setPlaceableKeys</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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;&nbsp;canPlaceOn)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the set of namespaced keys that the item can be placed on in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#setUnbreakable(boolean)" class="member-name-link">setUnbreakable</a><wbr>(boolean&nbsp;unbreakable)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the unbreakable tag.</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="#setVersion(int)" class="member-name-link">setVersion</a><wbr>(int&nbsp;version)</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 class="deprecation-comment">internal use only</div>
</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.bukkit.configuration.serialization.ConfigurationSerializable">Methods inherited from interface&nbsp;org.bukkit.configuration.serialization.<a href="../../configuration/serialization/ConfigurationSerializable.html" title="interface in org.bukkit.configuration.serialization">ConfigurationSerializable</a></h3>
<code><a href="../../configuration/serialization/ConfigurationSerializable.html#serialize()">serialize</a></code></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.bukkit.persistence.PersistentDataHolder">Methods inherited from interface&nbsp;org.bukkit.persistence.<a href="../../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence">PersistentDataHolder</a></h3>
<code><a href="../../persistence/PersistentDataHolder.html#getPersistentDataContainer()">getPersistentDataContainer</a></code></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="hasDisplayName()">
<h3>hasDisplayName</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasDisplayName</span>()</div>
<div class="block">Checks for existence of a display name.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if this has a display name</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="displayName()">
<h3>displayName</h3>
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
</span><span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></span>&nbsp;<span class="element-name">displayName</span>()</div>
<div class="block">Gets the display name.
<p>Plugins should check that <a href="#hasDisplayName()"><code>hasDisplayName()</code></a> returns <code>true</code> before calling this method.</p></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the display name</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="displayName(net.kyori.adventure.text.Component)">
<h3>displayName</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">displayName</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>&nbsp;displayName)</span></div>
<div class="block">Sets the display name.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>displayName</code> - the display name to set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDisplayName()">
<h3>getDisplayName</h3>
<div class="member-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>
<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://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://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>&nbsp;<span class="element-name">getDisplayName</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">in favour of <a href="#displayName()"><code>displayName()</code></a></div>
</div>
<div class="block">Gets the display name that is set.
<p>
Plugins should check that hasDisplayName() returns <code>true</code>
before calling this method.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the display name that is set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDisplayNameComponent()">
<h3>getDisplayNameComponent</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>
<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="return-type"><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/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</a>[]</span>&nbsp;<span class="element-name">getDisplayNameComponent</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">use <a href="#displayName()"><code>displayName()</code></a></div>
</div>
<div class="block">Gets the display name that is set.
<p>
Plugins should check that hasDisplayName() returns <code>true</code>
before calling this method.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the display name that is set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDisplayName(java.lang.String)">
<h3>setDisplayName</h3>
<div class="member-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="return-type">void</span>&nbsp;<span class="element-name">setDisplayName</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;name)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">in favour of <a href="#displayName(net.kyori.adventure.text.Component)"><code>displayName(net.kyori.adventure.text.Component)</code></a></div>
</div>
<div class="block">Sets the display name.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - the name to set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDisplayNameComponent(net.md_5.bungee.api.chat.BaseComponent[])">
<h3>setDisplayNameComponent</h3>
<div class="member-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="return-type">void</span>&nbsp;<span class="element-name">setDisplayNameComponent</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</a>[]&nbsp;component)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">use <a href="#displayName(net.kyori.adventure.text.Component)"><code>displayName(Component)</code></a></div>
</div>
<div class="block">Sets the display name.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>component</code> - the name component to set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasLocalizedName()">
<h3>hasLocalizedName</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasLocalizedName</span>()</div>
<div class="block">Checks for existence of a localized name.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if this has a localized name</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLocalizedName()">
<h3>getLocalizedName</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://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://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>&nbsp;<span class="element-name">getLocalizedName</span>()</div>
<div class="block">Gets the localized display name that is set.
<p>
Plugins should check that hasLocalizedName() returns <code>true</code>
before calling this method.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the localized name that is set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLocalizedName(java.lang.String)">
<h3>setLocalizedName</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setLocalizedName</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;name)</span></div>
<div class="block">Sets the localized name.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - the name to set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasLore()">
<h3>hasLore</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasLore</span>()</div>
<div class="block">Checks for existence of lore.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if this has lore</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="lore()">
<h3>lore</h3>
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>&gt;</span>&nbsp;<span class="element-name">lore</span>()</div>
<div class="block">Gets the lore.
<p>Plugins should check that <a href="#hasLore()"><code>hasLore()</code></a> returns <code>true</code> before calling this method.</p></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the display name</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="lore(java.util.List)">
<h3>lore</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">lore</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://jd.adventure.kyori.net/api/4.9.3/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>&gt;&nbsp;lore)</span></div>
<div class="block">Sets the lore.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>lore</code> - the lore to set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLore()">
<h3>getLore</h3>
<div class="member-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>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<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>&gt;</span>&nbsp;<span class="element-name">getLore</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">in favour of <a href="#lore()"><code>lore()</code></a></div>
</div>
<div class="block">Gets the lore that is set.
<p>
Plugins should check if hasLore() returns <code>true</code> before
calling this method.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>a list of lore that is set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLoreComponents()">
<h3>getLoreComponents</h3>
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</a>[]&gt;</span>&nbsp;<span class="element-name">getLoreComponents</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">use <a href="#lore()"><code>lore()</code></a></div>
</div>
<div class="block">Gets the lore that is set.
<p>
Plugins should check if hasLore() returns <code>true</code> before
calling this method.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>a list of lore that is set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLore(java.util.List)">
<h3>setLore</h3>
<div class="member-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="return-type">void</span>&nbsp;<span class="element-name">setLore</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<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>&gt;&nbsp;lore)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">in favour of <a href="#lore(java.util.List)"><code>lore(List)</code></a></div>
</div>
<div class="block">Sets the lore for this item.
Removes lore when given null.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>lore</code> - the lore that will be set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLoreComponents(java.util.List)">
<h3>setLoreComponents</h3>
<div class="member-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="return-type">void</span>&nbsp;<span class="element-name">setLoreComponents</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/net/md_5/bungee/api/chat/BaseComponent.html" title="class or interface in net.md_5.bungee.api.chat" class="external-link">BaseComponent</a>[]&gt;&nbsp;lore)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">use <a href="#lore(java.util.List)"><code>lore(List)</code></a></div>
</div>
<div class="block">Sets the lore for this item.
Removes lore when given null.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>lore</code> - the lore that will be set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasCustomModelData()">
<h3>hasCustomModelData</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasCustomModelData</span>()</div>
<div class="block">Checks for existence of custom model data.
<p>
CustomModelData is an integer that may be associated client side with a
custom item model.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if this has custom model data</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCustomModelData()">
<h3>getCustomModelData</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getCustomModelData</span>()</div>
<div class="block">Gets the custom model data that is set.
<p>
CustomModelData is an integer that may be associated client side with a
custom item model.
<p>
Plugins should check that hasCustomModelData() returns <code>true</code>
before calling this method.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the localized name that is set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCustomModelData(java.lang.Integer)">
<h3>setCustomModelData</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setCustomModelData</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>&nbsp;data)</span></div>
<div class="block">Sets the custom model data.
<p>
CustomModelData is an integer that may be associated client side with a
custom item model.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>data</code> - the data to set, or null to clear</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasEnchants()">
<h3>hasEnchants</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasEnchants</span>()</div>
<div class="block">Checks for the existence of any enchantments.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if an enchantment exists on this meta</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasEnchant(org.bukkit.enchantments.Enchantment)">
<h3>hasEnchant</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</span></div>
<div class="block">Checks for existence of the specified enchantment.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>ench</code> - enchantment to check</dd>
<dt>Returns:</dt>
<dd>true if this enchantment exists for this meta</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getEnchantLevel(org.bukkit.enchantments.Enchantment)">
<h3>getEnchantLevel</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getEnchantLevel</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</span></div>
<div class="block">Checks for the level of the specified enchantment.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>ench</code> - enchantment to check</dd>
<dt>Returns:</dt>
<dd>The level that the specified enchantment has, or 0 if none</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getEnchants()">
<h3>getEnchants</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://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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>&gt;</span>&nbsp;<span class="element-name">getEnchants</span>()</div>
<div class="block">Returns a copy the enchantments in this ItemMeta. <br>
Returns an empty map if none.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>An immutable copy of the enchantments</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="addEnchant(org.bukkit.enchantments.Enchantment,int,boolean)">
<h3>addEnchant</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">addEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench,
int&nbsp;level,
boolean&nbsp;ignoreLevelRestriction)</span></div>
<div class="block">Adds the specified enchantment to this item meta.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>ench</code> - Enchantment to add</dd>
<dd><code>level</code> - Level for the enchantment</dd>
<dd><code>ignoreLevelRestriction</code> - this indicates the enchantment should be
applied, ignoring the level limit</dd>
<dt>Returns:</dt>
<dd>true if the item meta changed as a result of this call, false
otherwise</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="removeEnchant(org.bukkit.enchantments.Enchantment)">
<h3>removeEnchant</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">removeEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</span></div>
<div class="block">Removes the specified enchantment from this item meta.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>ench</code> - Enchantment to remove</dd>
<dt>Returns:</dt>
<dd>true if the item meta changed as a result of this call, false
otherwise</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasConflictingEnchant(org.bukkit.enchantments.Enchantment)">
<h3>hasConflictingEnchant</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasConflictingEnchant</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="../../enchantments/Enchantment.html" title="class in org.bukkit.enchantments">Enchantment</a>&nbsp;ench)</span></div>
<div class="block">Checks if the specified enchantment conflicts with any enchantments in
this ItemMeta.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>ench</code> - enchantment to test</dd>
<dt>Returns:</dt>
<dd>true if the enchantment conflicts, false otherwise</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="addItemFlags(org.bukkit.inventory.ItemFlag...)">
<h3>addItemFlags</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">addItemFlags</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="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>...&nbsp;itemFlags)</span></div>
<div class="block">Set itemflags which should be ignored when rendering a ItemStack in the Client. This Method does silently ignore double set itemFlags.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>itemFlags</code> - The hideflags which shouldn't be rendered</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="removeItemFlags(org.bukkit.inventory.ItemFlag...)">
<h3>removeItemFlags</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">removeItemFlags</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="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>...&nbsp;itemFlags)</span></div>
<div class="block">Remove specific set of itemFlags. This tells the Client it should render it again. This Method does silently ignore double removed itemFlags.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>itemFlags</code> - Hideflags which should be removed</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getItemFlags()">
<h3>getItemFlags</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://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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>&gt;</span>&nbsp;<span class="element-name">getItemFlags</span>()</div>
<div class="block">Get current set itemFlags. The collection returned is unmodifiable.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A set of all itemFlags set</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasItemFlag(org.bukkit.inventory.ItemFlag)">
<h3>hasItemFlag</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasItemFlag</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="../ItemFlag.html" title="enum class in org.bukkit.inventory">ItemFlag</a>&nbsp;flag)</span></div>
<div class="block">Check if the specified flag is present on this item.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>flag</code> - the flag to check</dd>
<dt>Returns:</dt>
<dd>if it is present</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="isUnbreakable()">
<h3>isUnbreakable</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">isUnbreakable</span>()</div>
<div class="block">Return if the unbreakable tag is true. An unbreakable item will not lose
durability.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if the unbreakable tag is true</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setUnbreakable(boolean)">
<h3>setUnbreakable</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setUnbreakable</span><wbr><span class="parameters">(boolean&nbsp;unbreakable)</span></div>
<div class="block">Sets the unbreakable tag. An unbreakable item will not lose durability.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>unbreakable</code> - true if set unbreakable</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasAttributeModifiers()">
<h3>hasAttributeModifiers</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasAttributeModifiers</span>()</div>
<div class="block">Checks for the existence of any AttributeModifiers.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if any AttributeModifiers exist</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getAttributeModifiers()">
<h3>getAttributeModifiers</h3>
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <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>&lt;<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>&gt;</span>&nbsp;<span class="element-name">getAttributeModifiers</span>()</div>
<div class="block">Return an immutable copy of all Attributes and
their modifiers in this ItemMeta.<br>
Returns null if none exist.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>an immutable <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"><code>Multimap</code></a> of Attributes
and their AttributeModifiers, or null if none exist</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getAttributeModifiers(org.bukkit.inventory.EquipmentSlot)">
<h3>getAttributeModifiers</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://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://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>&lt;<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>&gt;</span>&nbsp;<span class="element-name">getAttributeModifiers</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="../EquipmentSlot.html" title="enum class in org.bukkit.inventory">EquipmentSlot</a>&nbsp;slot)</span></div>
<div class="block">Return an immutable copy of all <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>s and their
<a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s for a given <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a>.<br>
Any <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a> that does have have a given
<a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a> will be returned. This is because
AttributeModifiers without a slot are active in any slot.<br>
If there are no attributes set for the given slot, an empty map
will be returned.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>slot</code> - the <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a> to check</dd>
<dt>Returns:</dt>
<dd>the immutable <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"><code>Multimap</code></a> with the
respective Attributes and modifiers, or an empty map
if no attributes are set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getAttributeModifiers(org.bukkit.attribute.Attribute)">
<h3>getAttributeModifiers</h3>
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
</span><span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>&gt;</span>&nbsp;<span class="element-name">getAttributeModifiers</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute)</span></div>
<div class="block">Return an immutable copy of all <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s
for a given <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>attribute</code> - the <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a></dd>
<dt>Returns:</dt>
<dd>an immutable collection of <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s
or null if no AttributeModifiers exist for the Attribute.</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if Attribute is null</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="addAttributeModifier(org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier)">
<h3>addAttributeModifier</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">addAttributeModifier</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute,
<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="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>&nbsp;modifier)</span></div>
<div class="block">Add an Attribute and it's Modifier.
AttributeModifiers can now support <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a>s.
If not set, the <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a> will be active in ALL slots.
<br>
Two <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s that have the same <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link"><code>UUID</code></a>
cannot exist on the same Attribute.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>attribute</code> - the <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a> to modify</dd>
<dd><code>modifier</code> - the <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a> specifying the modification</dd>
<dt>Returns:</dt>
<dd>true if the Attribute and AttributeModifier were
successfully added</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if Attribute is null</dd>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if AttributeModifier is null</dd>
<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 AttributeModifier already exists</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setAttributeModifiers(com.google.common.collect.Multimap)">
<h3>setAttributeModifiers</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setAttributeModifiers</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
<a href="https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <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>&lt;<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>&gt;&nbsp;attributeModifiers)</span></div>
<div class="block">Set all <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>s and their <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s.
To clear all currently set Attributes and AttributeModifiers use
null or an empty Multimap.
If not null nor empty, this will filter all entries that are not-null
and add them to the ItemStack.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>attributeModifiers</code> - the new Multimap containing the Attributes
and their AttributeModifiers</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="removeAttributeModifier(org.bukkit.attribute.Attribute)">
<h3>removeAttributeModifier</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">removeAttributeModifier</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute)</span></div>
<div class="block">Remove all <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s associated with the given
<a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>.
This will return false if nothing was removed.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>attribute</code> - attribute to remove</dd>
<dt>Returns:</dt>
<dd>true if all modifiers were removed from a given
Attribute. Returns false if no attributes were
removed.</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if Attribute is null</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="removeAttributeModifier(org.bukkit.inventory.EquipmentSlot)">
<h3>removeAttributeModifier</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">removeAttributeModifier</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="../EquipmentSlot.html" title="enum class in org.bukkit.inventory">EquipmentSlot</a>&nbsp;slot)</span></div>
<div class="block">Remove all <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a>s and <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s for a
given <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a>.<br>
If the given <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a> is null, this will remove all
<a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>s that do not have an EquipmentSlot set.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>slot</code> - the <a href="../EquipmentSlot.html" title="enum class in org.bukkit.inventory"><code>EquipmentSlot</code></a> to clear all Attributes and
their modifiers for</dd>
<dt>Returns:</dt>
<dd>true if all modifiers were removed that match the given
EquipmentSlot.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="removeAttributeModifier(org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier)">
<h3>removeAttributeModifier</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">removeAttributeModifier</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="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute">Attribute</a>&nbsp;attribute,
<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="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute">AttributeModifier</a>&nbsp;modifier)</span></div>
<div class="block">Remove a specific <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a> and <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a>.
AttributeModifiers are matched according to their <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link"><code>UUID</code></a>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>attribute</code> - the <a href="../../attribute/Attribute.html" title="enum class in org.bukkit.attribute"><code>Attribute</code></a> to remove</dd>
<dd><code>modifier</code> - the <a href="../../attribute/AttributeModifier.html" title="class in org.bukkit.attribute"><code>AttributeModifier</code></a> to remove</dd>
<dt>Returns:</dt>
<dd>if any attribute modifiers were remove</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if the Attribute is null</dd>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if the AttributeModifier is null</dd>
<dt>See Also:</dt>
<dd>
<ul class="see-list-long">
<li><a href="../../attribute/AttributeModifier.html#getUniqueId()"><code>AttributeModifier.getUniqueId()</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCustomTagContainer()">
<h3>getCustomTagContainer</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>
<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="return-type"><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="tags/CustomItemTagContainer.html" title="interface in org.bukkit.inventory.meta.tags">CustomItemTagContainer</a></span>&nbsp;<span class="element-name">getCustomTagContainer</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">this API part has been replaced by the <a href="../../persistence/PersistentDataHolder.html" title="interface in org.bukkit.persistence"><code>PersistentDataHolder</code></a> API.
Please use <a href="../../persistence/PersistentDataHolder.html#getPersistentDataContainer()"><code>PersistentDataHolder.getPersistentDataContainer()</code></a> instead of this.</div>
</div>
<div class="block">Returns a public custom tag container capable of storing tags on the
item.
Those tags will be sent to the client with all of their content, so the
client is capable of reading them. This will result in the player seeing
a NBT Tag notification on the item.
These tags can also be modified by the client once in creative mode</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the custom tag container</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setVersion(int)">
<h3>setVersion</h3>
<div class="member-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="return-type">void</span>&nbsp;<span class="element-name">setVersion</span><wbr><span class="parameters">(int&nbsp;version)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">internal use only</div>
</div>
<div class="block">Internal use only! Do not use under any circumstances!</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>version</code> - version</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="clone()">
<h3>clone</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://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="ItemMeta.html" title="interface in org.bukkit.inventory.meta">ItemMeta</a></span>&nbsp;<span class="element-name">clone</span>()</div>
</section>
</li>
<li>
<section class="detail" id="getCanDestroy()">
<h3>getCanDestroy</h3>
<div class="member-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="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;</span>&nbsp;<span class="element-name">getCanDestroy</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#getDestroyableKeys()"><code>getDestroyableKeys()</code></a> as a replacement</div>
</div>
<div class="block">Gets set of materials what given item can destroy in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>Set of materials</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCanDestroy(java.util.Set)">
<h3>setCanDestroy</h3>
<div class="member-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="return-type">void</span>&nbsp;<span class="element-name">setCanDestroy</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;&nbsp;canDestroy)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#setDestroyableKeys(java.util.Collection)"><code>setDestroyableKeys(Collection)</code></a> as a replacement</div>
</div>
<div class="block">Sets set of materials what given item can destroy in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>canDestroy</code> - Set of materials</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCanPlaceOn()">
<h3>getCanPlaceOn</h3>
<div class="member-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="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;</span>&nbsp;<span class="element-name">getCanPlaceOn</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#getPlaceableKeys()"><code>getPlaceableKeys()</code></a> as a replacement</div>
</div>
<div class="block">Gets set of materials where given item can be placed on in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>Set of materials</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCanPlaceOn(java.util.Set)">
<h3>setCanPlaceOn</h3>
<div class="member-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="return-type">void</span>&nbsp;<span class="element-name">setCanPlaceOn</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../Material.html" title="enum class in org.bukkit">Material</a>&gt;&nbsp;canPlaceOn)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Minecraft does not limit this to the material enum, Use <a href="#setPlaceableKeys(java.util.Collection)"><code>setPlaceableKeys(Collection)</code></a> as a replacement</div>
</div>
<div class="block">Sets set of materials where given item can be placed on in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>canPlaceOn</code> - Set of materials</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDestroyableKeys()">
<h3>getDestroyableKeys</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://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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;</span>&nbsp;<span class="element-name">getDestroyableKeys</span>()</div>
<div class="block">Gets the collection of namespaced keys that the item can destroy in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>Set of <a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper"><code>Namespaced</code></a></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDestroyableKeys(java.util.Collection)">
<h3>setDestroyableKeys</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDestroyableKeys</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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;&nbsp;canDestroy)</span></div>
<div class="block">Sets the collection of namespaced keys that the item can destroy in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>canDestroy</code> - Collection of <a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper"><code>Namespaced</code></a></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPlaceableKeys()">
<h3>getPlaceableKeys</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://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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;</span>&nbsp;<span class="element-name">getPlaceableKeys</span>()</div>
<div class="block">Gets the collection of namespaced keys that the item can be placed on in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>Set of <a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper"><code>Namespaced</code></a></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPlaceableKeys(java.util.Collection)">
<h3>setPlaceableKeys</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">void</span>&nbsp;<span class="element-name">setPlaceableKeys</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="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a>&lt;<a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper">Namespaced</a>&gt;&nbsp;canPlaceOn)</span></div>
<div class="block">Sets the set of namespaced keys that the item can be placed on in <a href="../../GameMode.html#ADVENTURE"><code>GameMode.ADVENTURE</code></a></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>canPlaceOn</code> - Collection of <a href="../../../../com/destroystokyo/paper/Namespaced.html" title="interface in com.destroystokyo.paper"><code>Namespaced</code></a></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasPlaceableKeys()">
<h3>hasPlaceableKeys</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasPlaceableKeys</span>()</div>
<div class="block">Checks for the existence of any keys that the item can be placed on</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if this item has placeable keys</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="hasDestroyableKeys()">
<h3>hasDestroyableKeys</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">hasDestroyableKeys</span>()</div>
<div class="block">Checks for the existence of any keys that the item can destroy</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if this item has destroyable keys</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
</div>
</div>
</body>
</html>