mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-22 20:44:54 +02:00
19 lines
385 B
Java
19 lines
385 B
Java
package net.minestom.server.utils.math;
|
|
|
|
public class ShortRange extends Range<Short> {
|
|
|
|
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();
|
|
}
|
|
}
|