// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.procedurallib.supplier;

import javax.annotation.Nonnull;
import com.hypixel.hytale.math.util.HashUtil;

public class DoubleRangeCoordinateHashSupplier implements IDoubleCoordinateHashSupplier
{
    protected final IDoubleRange range;
    
    public DoubleRangeCoordinateHashSupplier(final IDoubleRange range) {
        this.range = range;
    }
    
    @Override
    public double get(final int seed, final int x, final int y, final long hash) {
        return this.range.getValue(HashUtil.random(seed, x, y, hash));
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "DoubleRangeCoordinateHashSupplier{range=" + String.valueOf(this.range);
    }
}
