<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>
<divclass="inheritance"><ahref="MaterialData.html"title="class in org.bukkit.material">org.bukkit.material.MaterialData</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>, <code><ahref="Directional.html"title="interface in org.bukkit.material">Directional</a></code>, <code><ahref="Redstone.html"title="interface in org.bukkit.material">Redstone</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">Diode</span>
<spanclass="extends-implements">extends <ahref="MaterialData.html"title="class in org.bukkit.material">MaterialData</a>
implements <ahref="Directional.html"title="interface in org.bukkit.material">Directional</a>, <ahref="Redstone.html"title="interface in org.bukkit.material">Redstone</a></span></div>
<divclass="col-first odd-row-color"><code>protected static final <ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></code></div>
<divclass="block">Constructs a diode switched on, with a delay of 1 and facing the default
direction (north).</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.block.BlockFace)"class="member-name-link">Diode</a><wbr>(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> facingDirection)</code></div>
<divclass="block">Constructs a diode switched off, with a delay of 1 and facing the
specified direction.</div>
</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.block.BlockFace,int)"class="member-name-link">Diode</a><wbr>(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> facingDirection,
<divclass="block">Constructs a diode switched off, with the specified delay and facing the
specified direction.</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.block.BlockFace,int,boolean)"class="member-name-link">Diode</a><wbr>(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> facingDirection,
<divclass="block">Constructs a diode switched on or off, with the specified delay and
facing the specified direction.</div>
</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.Material)"class="member-name-link">Diode</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">Diode</a><wbr>(<ahref="../Material.html"title="enum class in org.bukkit">Material</a> type,
<divclass="block">Gets the delay of the repeater in ticks.</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="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#setFacingDirection(org.bukkit.block.BlockFace)"class="member-name-link">setFacingDirection</a><wbr>(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</code></div>
<divclass="block">Sets the direction this diode is facing.</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-org.bukkit.material.MaterialData">Methods inherited from class org.bukkit.material.<ahref="MaterialData.html"title="class in org.bukkit.material">MaterialData</a></h3>
<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>
</section>
</li>
</ul>
</section>
<sectionclass="details">
<ulclass="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<sectionclass="field-details"id="field-detail">
<h2>Field Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="DEFAULT_DIRECTION">
<h3>DEFAULT_DIRECTION</h3>
<divclass="member-signature"><spanclass="modifiers">protected static final</span> <spanclass="return-type"><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></span> <spanclass="element-name">DEFAULT_DIRECTION</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Diode</span><wbr><spanclass="parameters">(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> facingDirection)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Diode</span><wbr><spanclass="parameters">(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> facingDirection,
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Diode</span><wbr><spanclass="parameters">(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> facingDirection,
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Diode</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">Diode</span><wbr><spanclass="parameters">(<ahref="../Material.html"title="enum class in org.bukkit">Material</a> type,
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">setFacingDirection</span><wbr><spanclass="parameters">(<ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a> face)</span></div>
<divclass="block">Sets the direction this diode is facing.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="Directional.html#setFacingDirection(org.bukkit.block.BlockFace)">setFacingDirection</a></code> in interface <code><ahref="Directional.html"title="interface in org.bukkit.material">Directional</a></code></dd>
<dt>Parameters:</dt>
<dd><code>face</code> - The direction to set this diode to</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block"><code>BlockFace</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getFacing()">
<h3>getFacing</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block">BlockFace</a></span> <spanclass="element-name">getFacing</span>()</div>
<divclass="block">Gets the direction this diode is facing</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="Directional.html#getFacing()">getFacing</a></code> in interface <code><ahref="Directional.html"title="interface in org.bukkit.material">Directional</a></code></dd>
<dt>Returns:</dt>
<dd>The direction this diode is facing</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="../block/BlockFace.html"title="enum class in org.bukkit.block"><code>BlockFace</code></a></li>
</ul>
</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="MaterialData.html#toString()">toString</a></code> in class <code><ahref="MaterialData.html"title="class in org.bukkit.material">MaterialData</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="Diode.html"title="class in org.bukkit.material">Diode</a></span> <spanclass="element-name">clone</span>()</div>
<dd><code><ahref="MaterialData.html#clone()">clone</a></code> in class <code><ahref="MaterialData.html"title="class in org.bukkit.material">MaterialData</a></code></dd>
<divclass="block">Checks if the diode is powered.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="Redstone.html#isPowered()">isPowered</a></code> in interface <code><ahref="Redstone.html"title="interface in org.bukkit.material">Redstone</a></code></dd>