net.minestom.server.utils.math.FloatRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.utils.math;
public class FloatRange extends Range {
public FloatRange(Float minimum, Float maximum) {
super(minimum, maximum);
}
public FloatRange(Float value) {
super(value);
}
/** {@inheritDoc} */
@Override
public boolean isInRange(Float value) {
return value >= this.getMinimum() && value <= this.getMaximum();
}
}