package com.livingworld.integration.minecraft;

import com.livingworld.regions.RegionCoordinate;

/**
 * Converts platform coordinate values into Living World coordinates.
 */
public final class MinecraftCoordinateMapper {

    public RegionCoordinate fromBlockPos(
            String dimensionId,
            int blockX,
            int blockZ,
            int regionSizeChunks) {
        return RegionCoordinate.fromBlock(
                dimensionId,
                blockX,
                blockZ,
                regionSizeChunks);
    }

    public RegionCoordinate fromChunkPos(
            String dimensionId,
            int chunkX,
            int chunkZ,
            int regionSizeChunks) {
        return RegionCoordinate.fromChunk(
                dimensionId,
                chunkX,
                chunkZ,
                regionSizeChunks);
    }
}
