net.minestom.server.utils.math.IntRange 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 IntRange extends Range {
public IntRange(Integer minimum, Integer maximum) {
super(minimum, maximum);
}
public IntRange(Integer value) {
super(value);
}
/**
* {@inheritDoc}
*/
@Override
public boolean isInRange(Integer value) {
return value >= this.getMinimum() && value <= this.getMaximum();
}
}