Skip to content

Commit

Permalink
Updating Block event with reference to Voxel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
viveleroi authored and kitskub committed Sep 10, 2014
1 parent 20c7515 commit 40c0778
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 40c0778

Please sign in to comment.