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

package com.hypixel.hytale.procedurallib.supplier;

import javax.annotation.Nonnull;

public class ConstantDoubleCoordinateHashSupplier implements IDoubleCoordinateHashSupplier
{
    public static final ConstantDoubleCoordinateHashSupplier ZERO;
    public static final ConstantDoubleCoordinateHashSupplier ONE;
    protected final double result;
    
    public ConstantDoubleCoordinateHashSupplier(final double result) {
        this.result = result;
    }
    
    public double getResult() {
        return this.result;
    }
    
    @Override
    public double get(final int seed, final int x, final int y, final long hash) {
        return this.result;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "ConstantDoubleCoordinateHashSupplier{result=" + this.result;
    }
    
    static {
        ZERO = new ConstantDoubleCoordinateHashSupplier(0.0);
        ONE = new ConstantDoubleCoordinateHashSupplier(1.0);
    }
}
