You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/create-commands/arguments/types/ranged-arguments.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ authors:
10
10
11
11

12
12
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.
14
14
15
15
These consist of values such as:
16
16
@@ -23,9 +23,9 @@ These consist of values such as:
23
23
24
24
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.
25
25
26
-
## The IntegerRange & FloatRange class
26
+
## The IntegerRange & DoubleRange class
27
27
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.
29
29
30
30
The `IntegerRange` class has the following methods:
31
31
@@ -37,12 +37,12 @@ class IntegerRange {
37
37
}
38
38
```
39
39
40
-
The `FloatRange` class has the following methods:
40
+
The `DoubleRange` class has the following methods:
0 commit comments