From 5fc5b4c1a34fc8dac1003d8bd8b49043052260c5 Mon Sep 17 00:00:00 2001 From: Tahg Date: Wed, 12 Jan 2011 12:40:21 -0500 Subject: Added redstone event --- .../org/bukkit/event/block/BlockRedstoneEvent.java | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/main/java/org/bukkit/event/block/BlockRedstoneEvent.java (limited to 'src/main') 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; + } + +} -- cgit v1.2.3