summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-04-02 09:01:48 -0500
committerfeildmaster <admin@feildmaster.com>2012-04-02 14:11:02 -0500
commita963880bd8f3a690b91dbe4e314191ac31e22e69 (patch)
treee9a12a1acf3ad4867fac3ace5d1218603fa11dfa /src/main/java/org
parented8cf5196e520ecf559db3512cec4269f18dae94 (diff)
downloadcraftbukkit-a963880bd8f3a690b91dbe4e314191ac31e22e69.tar
craftbukkit-a963880bd8f3a690b91dbe4e314191ac31e22e69.tar.gz
craftbukkit-a963880bd8f3a690b91dbe4e314191ac31e22e69.tar.lz
craftbukkit-a963880bd8f3a690b91dbe4e314191ac31e22e69.tar.xz
craftbukkit-a963880bd8f3a690b91dbe4e314191ac31e22e69.zip
Add BlockRedstoneEvent to Redstone Lamps, Addresses BUKKIT-1431
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
index 36d11682..23fc7186 100644
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
@@ -510,4 +510,10 @@ public class CraftEventFactory {
Bukkit.getPluginManager().callEvent(event);
return event;
}
+
+ public static BlockRedstoneEvent callRedstoneChange(World world, int x, int y, int z, int oldCurrent, int newCurrent) {
+ BlockRedstoneEvent event = new BlockRedstoneEvent(world.getWorld().getBlockAt(x, y, z), oldCurrent, newCurrent);
+ world.getServer().getPluginManager().callEvent(event);
+ return event;
+ }
}