Skip to content

Commit b897923

Browse files
committed
Update ranged-arguments.md to correctly mention the DoubleRangeArgument
1 parent bc22213 commit b897923

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/en/create-commands/arguments/types/ranged-arguments.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors:
1010

1111
![A float range argument command with the argument "0.5.3.5" entered](/images/arguments/floatrange.png)
1212

13-
Ranged arguments allow players to provide a range between two numbers, all within a single argument. The CommandAPI provides two ranged arguments, `IntegerRangeArgument` for ranges with only integer values, and `FloatRangeArgument` for ranged with potential floating point values.
13+
Ranged arguments allow players to provide a range between two numbers, all within a single argument. The CommandAPI provides two ranged arguments, `IntegerRangeArgument` for ranges with only integer values, and `DoubleRangeArgument` for ranged with potential floating point values.
1414

1515
These consist of values such as:
1616

@@ -23,9 +23,9 @@ These consist of values such as:
2323

2424
This allows you to let users define a range of values, which can be used to limit a value, such as the number of players in a region or for a random number generator.
2525

26-
## The IntegerRange & FloatRange class
26+
## The IntegerRange & DoubleRange class
2727

28-
The CommandAPI returns an `IntegerRange` from the `IntegerRangeArgument`, and a `FloatRange` from the `FloatRangeArgument`, which represents the upper and lower bounds of the numbers provided by the command sender, as well as a method to check if a number is within that range.
28+
The CommandAPI returns an `IntegerRange` from the `IntegerRangeArgument`, and a `DoubleRange` from the `DoubleRangeArgument`, which represents the upper and lower bounds of the numbers provided by the command sender, as well as a method to check if a number is within that range.
2929

3030
The `IntegerRange` class has the following methods:
3131

@@ -37,12 +37,12 @@ class IntegerRange {
3737
}
3838
```
3939

40-
The `FloatRange` class has the following methods:
40+
The `DoubleRange` class has the following methods:
4141

4242
```java
43-
class FloatRange {
44-
public float getLowerBound();
45-
public float getUpperBound();
43+
class DoubleRange {
44+
public double getLowerBound();
45+
public double getUpperBound();
4646
public boolean isInRange(float);
4747
}
4848
```

0 commit comments

Comments
 (0)