summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2011-01-12 12:40:21 -0500
committerTahg <tahgtahv@gmail.com>2011-01-12 12:40:21 -0500
commit5fc5b4c1a34fc8dac1003d8bd8b49043052260c5 (patch)
treee554ac1b92fbf2f0c5227c168585832cbe8494df /src/main
parentc5e31fd6f30542f663c427aa1bb95dd004fc46c7 (diff)
downloadbukkit-5fc5b4c1a34fc8dac1003d8bd8b49043052260c5.tar
bukkit-5fc5b4c1a34fc8dac1003d8bd8b49043052260c5.tar.gz
bukkit-5fc5b4c1a34fc8dac1003d8bd8b49043052260c5.tar.lz
bukkit-5fc5b4c1a34fc8dac1003d8bd8b49043052260c5.tar.xz
bukkit-5fc5b4c1a34fc8dac1003d8bd8b49043052260c5.zip
Added redstone event
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java b/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java
new file mode 100644
index 00000000..b2abd482
--- /dev/null
+++ b/src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java
@@ -0,0 +1,46 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package org.bukkit.event.block;
+
+import org.bukkit.Block;
+import org.bukkit.BlockFace;
+
+/**
+ *
+ * @author Nathan
+ */
+public class BlockRedstoneEvent extends BlockFromToEvent {
+ private int oldCurrent;
+ private int newCurrent;
+
+ public BlockRedstoneEvent(Block block, BlockFace face, int oldCurrent, int newCurrent) {
+ super(Type.REDSTONE_CHANGE, block, face);
+ this.oldCurrent = oldCurrent;
+ this.newCurrent = newCurrent;
+ }
+
+ /**
+ * @return the oldCurrent
+ */
+ public int getOldCurrent() {
+ return oldCurrent;
+ }
+
+ /**
+ * @return the newCurrent
+ */
+ public int getNewCurrent() {
+ return newCurrent;
+ }
+
+ /**
+ * @param newCurrent the newCurrent to set
+ */
+ public void setNewCurrent(int newCurrent) {
+ this.newCurrent = newCurrent;
+ }
+
+}