Preparing search index...
The search index is not available
Script API - v1.21.44
Script API - v1.21.44
@minecraft/math
clampNumber
Function clampNumber
clamp
Number
(
val
,
min
,
max
)
:
number
Clamps the passed in number to the passed in min and max values.
Parameters
val
:
number
min
:
number
max
:
number
Returns
number
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Script API -
v1.21.44
@minecraft/common@1.2.0
@minecraft/debug-
utilities@1.0.0-
beta
@minecraft/server-
admin@1.0.0-
beta
@minecraft/server-
editor@0.1.0-
beta
@minecraft/server-
gametest@0.1.0
@minecraft/server-
gametest@1.0.0-
beta
@minecraft/server-
net@1.0.0-
beta
@minecraft/server-
ui@1.3.0
@minecraft/server-
ui@1.4.0-
beta
@minecraft/server@1.15.0
@minecraft/server@1.16.0-
beta
@minecraft/vanilla-
data
@minecraft/math
Vector2
Builder
Vector2
Utils
Vector3
Builder
Vector3
Utils
VECTOR3_
BACK
VECTOR3_
DOWN
VECTOR3_
EAST
VECTOR3_
FORWARD
VECTOR3_
LEFT
VECTOR3_
NORTH
VECTOR3_
ONE
VECTOR3_
RIGHT
VECTOR3_
SOUTH
VECTOR3_
UP
VECTOR3_
WEST
VECTOR3_
ZERO
clamp
Number
Clamps the passed in number to the passed in min and max values.