All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.utils.math.DoubleRange Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.utils.math;

public class DoubleRange extends Range {

    public DoubleRange(Double minimum, Double maximum) {
        super(minimum, maximum);
    }

    public DoubleRange(Double value) {
        super(value);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean isInRange(Double value) {
        return value >= this.getMinimum() && value <= this.getMaximum();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy