From f8decbe750304f1dc08dd7fae01a7b527f33f50a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 15 Jan 2011 20:35:22 +0000 Subject: [PATCH] RedstoneWire MaterialData By: Dinnerbone --- .../org/bukkit/material/RedstoneWire.java | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 paper-api/src/main/java/org/bukkit/material/RedstoneWire.java diff --git a/paper-api/src/main/java/org/bukkit/material/RedstoneWire.java b/paper-api/src/main/java/org/bukkit/material/RedstoneWire.java new file mode 100644 index 0000000000..f11c508cff --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/material/RedstoneWire.java @@ -0,0 +1,35 @@ + +package org.bukkit.material; + +import org.bukkit.Material; + +/** + * Represents redstone wire + */ +public class RedstoneWire extends MaterialData implements Redstone { + public RedstoneWire(final int type) { + super(type); + } + + public RedstoneWire(final Material type) { + super(type); + } + + public RedstoneWire(final int type, final byte data) { + super(type, data); + } + + public RedstoneWire(final Material type, final byte data) { + super(type, data); + } + + /** + * Gets the current state of this Material, indicating if it's powered or + * unpowered + * + * @return true if powered, otherwise false + */ + public boolean isPowered() { + return getData() > 0; + } +}