diff options
author | durron597 <martin.jared@gmail.com> | 2010-12-30 17:49:52 -0500 |
---|---|---|
committer | durron597 <martin.jared@gmail.com> | 2010-12-30 17:49:52 -0500 |
commit | 0889be4df51a1e613d0aa8bbebde67ef9e097a34 (patch) | |
tree | c8785190d4b98657a42cefdf0825735cbb49644f | |
parent | 008eb8976806f6c19f04ae99597244519e1d1fc3 (diff) | |
download | bukkit-0889be4df51a1e613d0aa8bbebde67ef9e097a34.tar bukkit-0889be4df51a1e613d0aa8bbebde67ef9e097a34.tar.gz bukkit-0889be4df51a1e613d0aa8bbebde67ef9e097a34.tar.lz bukkit-0889be4df51a1e613d0aa8bbebde67ef9e097a34.tar.xz bukkit-0889be4df51a1e613d0aa8bbebde67ef9e097a34.zip |
Changed fromTo to be Block, Face
-rw-r--r-- | src/org/bukkit/event/block/BlockFromToEvent.java | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/org/bukkit/event/block/BlockFromToEvent.java b/src/org/bukkit/event/block/BlockFromToEvent.java index 2bf3f058..0b82ee77 100644 --- a/src/org/bukkit/event/block/BlockFromToEvent.java +++ b/src/org/bukkit/event/block/BlockFromToEvent.java @@ -1,17 +1,18 @@ package org.bukkit.event.block; import org.bukkit.Block; +import org.bukkit.BlockFace; import org.bukkit.event.Event; /** * Holds information for events with a source block and a destination block */ public class BlockFromToEvent extends BlockEvent { - protected Block from; + protected BlockFace face; - public BlockFromToEvent(final Event.Type type, final Block from, final Block to) { - super(type, to); - this.from = from; + public BlockFromToEvent(final Event.Type type, final Block block, final BlockFace face) { + super(type, block); + this.face = face; } /** @@ -19,16 +20,7 @@ public class BlockFromToEvent extends BlockEvent { * * @return Block the block is event originated from */ - public Block getFrom() { - return from; - } - - /** - * Gets the target block of this event - * - * @return Block the block containing this event - */ - public Block getTo() { - return getBlock(); + public BlockFace getFace() { + return face; } } |