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