Interface BlockVolume

    • Method Detail

      • block

        BlockState block​(int x,
                         int y,
                         int z)
      • fluid

        FluidState fluid​(int x,
                         int y,
                         int z)
      • highestYAt

        int highestYAt​(int x,
                       int z)
        Get the y value of the highest block that sunlight can reach in the given column.

        This method ignores all transparent blocks, providing the highest opaque block.

        Parameters:
        x - The x column value
        z - The z column value
        Returns:
        The y value of the highest opaque block
      • highestYAt

        default int highestYAt​(Vector2i column)
        Get the y value of the highest block that sunlight can reach in the given column.

        This method ignores all transparent blocks, providing the highest opaque block.

        Parameters:
        column - The column value
        Returns:
        The y value of the highest opaque block
      • highestPositionAt

        default Vector3i highestPositionAt​(Vector3i position)
        Get the ServerLocation of the highest block that sunlight can reach in the given column.

        This method ignores all transparent blocks, providing the highest opaque block.

        Parameters:
        position - The column position
        Returns:
        The highest opaque position