From 40c07782e68d246d2b7bf2926cdaf88421042fb7 Mon Sep 17 00:00:00 2001 From: Mike Botsko Date: Tue, 9 Sep 2014 19:17:05 -0700 Subject: [PATCH] Updating Block event with reference to Voxel Updated `BlockEvent` with `Voxel getVoxel()` for block/position. I'm debating renaming the events to `VoxelEvent` but that may be too different from what devs are accustomed to. --- .../BlockEvent.java => voxel/VoxelEvent.java} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename src/main/java/org/spongepowered/api/event/{block/BlockEvent.java => voxel/VoxelEvent.java} (81%) diff --git a/src/main/java/org/spongepowered/api/event/block/BlockEvent.java b/src/main/java/org/spongepowered/api/event/voxel/VoxelEvent.java similarity index 81% rename from src/main/java/org/spongepowered/api/event/block/BlockEvent.java rename to src/main/java/org/spongepowered/api/event/voxel/VoxelEvent.java index 018f91f77a5..8e1f7825f4c 100644 --- a/src/main/java/org/spongepowered/api/event/block/BlockEvent.java +++ b/src/main/java/org/spongepowered/api/event/voxel/VoxelEvent.java @@ -21,22 +21,22 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -package org.spongepowered.api.event.block; +package org.spongepowered.api.event.voxel; import org.spongepowered.api.block.Block; import org.spongepowered.api.event.Event; +import org.spongepowered.api.world.Voxel; /** - * Describes events which contain a {@link Block} + * Describes events which contain a {@link Block} wrapped by a {@link Voxel} */ -public interface BlockEvent extends Event { +public interface VoxelEvent extends Event { /** - * Get {@link Block} included in the event - * TODO: use voxel instead to provide the location and block at once? + * Get {@link Voxel} included in the event * - * @return Event {@link Block} + * @return Event {@link Voxel} */ - Block getBlock(); + Voxel getVoxel(); }