Interface BlockVolume.Modifiable<M extends BlockVolume.Modifiable<M>>

    • Method Detail

      • setBlock

        default boolean setBlock​(Vector3i position,
                                 BlockState block)
        Sets the block at the given position in the world.
        Parameters:
        position - The position
        block - The block
        Returns:
        Whether the block change was successful
        Throws:
        PositionOutOfBoundsException - If the position is outside of the bounds of the volume
      • setBlock

        boolean setBlock​(int x,
                         int y,
                         int z,
                         BlockState block)
        Sets the block at the given position in the world.
        Parameters:
        x - The X position
        y - The Y position
        z - The Z position
        block - The block
        Returns:
        Whether the block change was successful
        Throws:
        PositionOutOfBoundsException - If the position is outside of the bounds of the volume
      • removeBlock

        default boolean removeBlock​(Vector3i position)
      • removeBlock

        boolean removeBlock​(int x,
                            int y,
                            int z)