<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Cloneable.html"title="class or interface in java.lang"class="external-link">Cloneable</a></code></dd>
</dl>
<dlclass="notes">
<dt>Direct Known Subclasses:</dt>
<dd><code><ahref="Banner.html"title="class in org.bukkit.material">Banner</a></code>, <code><ahref="Bed.html"title="class in org.bukkit.material">Bed</a></code>, <code><ahref="Cake.html"title="class in org.bukkit.material">Cake</a></code>, <code><ahref="Cauldron.html"title="class in org.bukkit.material">Cauldron</a></code>, <code><ahref="Coal.html"title="class in org.bukkit.material">Coal</a></code>, <code><ahref="CocoaPlant.html"title="class in org.bukkit.material">CocoaPlant</a></code>, <code><ahref="Command.html"title="class in org.bukkit.material">Command</a></code>, <code><ahref="Comparator.html"title="class in org.bukkit.material">Comparator</a></code>, <code><ahref="Crops.html"title="class in org.bukkit.material">Crops</a></code>, <code><ahref="Diode.html"title="class in org.bukkit.material">Diode</a></code>, <code><ahref="DirectionalContainer.html"title="class in org.bukkit.material">DirectionalContainer</a></code>, <code><ahref="Door.html"title="class in org.bukkit.material">Door</a></code>, <code><ahref="Dye.html"title="class in org.bukkit.material">Dye</a></code>, <code><ahref="FlowerPot.html"title="class in org.bukkit.material">FlowerPot</a></code>, <code><ahref="Gate.html"title="class in org.bukkit.material">Gate</a></code>, <code><ahref="Hopper.html"title="class in org.bukkit.material">Hopper</a></code>, <code><ahref="LongGrass.html"title="class in org.bukkit.material">LongGrass</a></code>, <code><ahref="Mushroom.html"title="class in org.bukkit.material">Mushroom</a></code>, <code><ahref="NetherWarts.html"title="class in org.bukkit.material">NetherWarts</a></code>, <code><ahref="Observer.html"title="class in org.bukkit.material">Observer</a></code>, <code><ahref="PistonBaseMaterial.html"title="class in org.bukkit.material">PistonBaseMaterial</a></code>, <code><ahref="PistonExtensionMaterial.html"title="class in org.bukkit.material">PistonExtensionMaterial</a></code>, <code><ahref="PressurePlate.html"title="class in org.bukkit.material">PressurePlate</a></code>, <code><ahref="Pumpkin.html"title="class in org.bukkit.material">Pumpkin</a></code>, <code><ahref="Rails.html"title="class in org.bukkit.material">Rails</a></code>, <code><ahref="RedstoneWire.html"title="class in org.bukkit.material">RedstoneWire</a></code>, <code><ahref="Sandstone.html"title="class in org.bukkit.material">Sandstone</a></code>, <code><ahref="Sign.html"title="class in org.bukkit.material">Sign</a></code>, <code><ahref="SimpleAttachableMaterialData.html"title="class in org.bukkit.material">SimpleAttachableMaterialData</a></code>, <code><ahref="Skull.html"title="class in org.bukkit.material">Skull</a></code>, <code><ahref="SpawnEgg.html"title="class in org.bukkit.material">SpawnEgg</a></code>, <code><ahref="Stairs.html"title="class in org.bukkit.material">Stairs</a></code>, <code><ahref="TexturedMaterial.html"title="class in org.bukkit.material">TexturedMaterial</a></code>, <code><ahref="Tripwire.html"title="class in org.bukkit.material">Tripwire</a></code>, <code><ahref="Vine.html"title="class in org.bukkit.material">Vine</a></code>, <code><ahref="Wood.html"title="class in org.bukkit.material">Wood</a></code>, <code><ahref="Wool.html"title="class in org.bukkit.material">Wool</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="annotations"><ahref="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><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">MaterialData</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>
implements <ahref="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></span></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.Material)"class="member-name-link">MaterialData</a><wbr>(<ahref="../Material.html"title="enum class in org.bukkit">Material</a> type)</code></div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.Material,byte)"class="member-name-link">MaterialData</a><wbr>(<ahref="../Material.html"title="enum class in org.bukkit">Material</a> type,
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#equals(java.lang.Object)"class="member-name-link">equals</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="../Material.html"title="enum class in org.bukkit">Material</a></code></div>
<divclass="block">Creates a new ItemStack based on this MaterialData</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="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>
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">MaterialData</span><wbr><spanclass="parameters">(<ahref="../Material.html"title="enum class in org.bukkit">Material</a> type)</span></div>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="modifiers">public</span> <spanclass="element-name">MaterialData</span><wbr><spanclass="parameters">(<ahref="../Material.html"title="enum class in org.bukkit">Material</a> type,
<divclass="member-signature"><spanclass="annotations"><ahref="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>
<divclass="block">Gets the raw data in this material</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Raw data</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="setData(byte)">
<h3>setData</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="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>
<divclass="block">Sets the raw data of this material</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>data</code> - New raw data</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getItemType()">
<h3>getItemType</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="../Material.html"title="enum class in org.bukkit">Material</a></span> <spanclass="element-name">getItemType</span>()</div>
<divclass="block">Gets the Material that this MaterialData represents</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Material represented by this MaterialData</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toItemStack()">
<h3>toItemStack</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="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><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a></span> <spanclass="element-name">toItemStack</span>()</div>
<divclass="deprecation-comment">this method creates an ItemStack of size 0 which is not
generally useful. Consider <ahref="#toItemStack(int)"><code>toItemStack(int)</code></a>.</div>
</div>
<divclass="block">Creates a new ItemStack based on this MaterialData</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>New ItemStack containing a copy of this MaterialData</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toItemStack(int)">
<h3>toItemStack</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a></span> <spanclass="element-name">toItemStack</span><wbr><spanclass="parameters">(int amount)</span></div>
<divclass="block">Creates a new ItemStack based on this MaterialData</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>amount</code> - The stack size of the new stack</dd>
<dt>Returns:</dt>
<dd>New ItemStack containing a copy of this MaterialData</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toString()">
<h3>toString</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="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> <spanclass="element-name">toString</span>()</div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">equals</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</span></div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="clone()">
<h3>clone</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="MaterialData.html"title="class in org.bukkit.material">MaterialData</a></span> <spanclass="element-name">clone</span>()</div>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>