/*
 * This file is part of SpongeAPI, licensed under the MIT License (MIT).
 *
 * Copyright (c) SpongePowered <https://www.spongepowered.org>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.spongepowered.api.world.volume.block;

import org.spongepowered.api.block.BlockState;
import org.spongepowered.api.util.PositionOutOfBoundsException;
import org.spongepowered.api.world.BlockChangeFlag;
import org.spongepowered.api.world.BlockChangeFlags;
import org.spongepowered.math.vector.Vector3i;

public interface PhysicsAwareMutableBlockVolume<P extends PhysicsAwareMutableBlockVolume<P>> extends BlockVolume.Mutable<P> {

    @Override
    default boolean setBlock(final Vector3i position, final BlockState block) {
        return this.setBlock(position.getX(), position.getY(), position.getZ(), block, BlockChangeFlags.ALL);
    }

    @Override
    default boolean setBlock(final int x, final int y, final int z, final BlockState block) {
        return this.setBlock(x, y, z, block, BlockChangeFlags.ALL);
    }

    /**
     * Sets the block at the given position in the world.
     *
     * @param position The position
     * @param blockState The block
     * @param flag The various change flags controlling some interactions
     * @return Whether the block change was successful
     * @throws PositionOutOfBoundsException If the position is outside of the
     *         bounds of the volume
     */
    default boolean setBlock(final Vector3i position, final BlockState blockState, final BlockChangeFlag flag) {
        return this.setBlock(position.getX(), position.getY(), position.getZ(), blockState, flag);
    }

    /**
     * Sets the block at the given position in the world.
     *
     * @param x The X position
     * @param y The Y position
     * @param z The Z position
     * @param blockState The block
     * @param flag The various change flags controlling some interactions
     * @return Whether the block change was successful
     * @throws PositionOutOfBoundsException If the position is outside of the
     *         bounds of the volume
     */
    boolean setBlock(int x, int y, int z, BlockState blockState, BlockChangeFlag flag);
}

@@ -1694,214 +1694,1503 @@
     
-@Override%0A    default boolean setBlock(final Vector3i position, final BlockState block) %7B%0A        return this.setBlock(position.getX(), position.getY(), position.getZ(), block, BlockChangeFlags.ALL);%0A    %7D%0A
+/**%0A     * %7B@inheritDoc%7D%0A     *%0A     * Additionally, this performs what's considered to be %22default%22 placement%0A     * by a %7B@link org.spongepowered.api.entity.living.player.Player%7D such that%0A     * neighboring blocks are affected, light is updated, pathfinding awareness%0A     * is notified, etc. see %7B@link BlockChangeFlags#DEFAULT_PLACEMENT%7D for%0A     * more information, and see %7B@link BlockChangeFlag%7D for details on the%0A     * modifiers and what they may change.%0A     *%0A     * @param position The position%0A     * @param block The block%0A     * @return True if the block change was not cancelled%0A     */%0A    @Override%0A    default boolean setBlock(final Vector3i position, final BlockState block) %7B%0A        return this.setBlock(position.getX(), position.getY(), position.getZ(), block, BlockChangeFlags.DEFAULT_PLACEMENT);%0A    %7D%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     *%0A     * Additionally, this performs what's considered to be %22default%22 placement%0A     * by a %7B@link org.spongepowered.api.entity.living.player.Player%7D such that%0A     * neighboring blocks are affected, light is updated, pathfinding awareness%0A     * is notified, etc. see %7B@link BlockChangeFlags#DEFAULT_PLACEMENT%7D for%0A     * more information, and see %7B@link BlockChangeFlag%7D for details on the%0A     * modifiers and what they may change.%0A     *%0A     * @param x The X position%0A     * @param y The Y position%0A     * @param z The Z position%0A     * @param block The block%0A     * @return True if the block change was not cancelled%0A     */
 %0A   
@@ -3356,19 +3356,33 @@
 geFlags.
-ALL
+DEFAULT_PLACEMENT
 );%0A    %7D

Update API implementation using BlockChangeFlags to the "default"