It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.util.math.Vector3f;

Name: add

Return Type: void

ZenScript
Copy
Vector3f.add(other as Vector3f) as void
参数类型描述
参数
other
类型
Vector3f
描述
No Description Provided

Name: add

Return Type: void

ZenScript
Copy
Vector3f.add(x as float, y as float, z as float) as void
参数类型描述
参数
x
类型
浮点数
描述
No Description Provided
参数
y
类型
浮点数
描述
No Description Provided
参数
z
类型
浮点数
描述
No Description Provided

Name: clamp

Return Type: void

ZenScript
Copy
Vector3f.clamp(min as float, max as float) as void
参数类型描述
参数
min
类型
浮点数
描述
No Description Provided
参数
max
类型
浮点数
描述
No Description Provided

Name: clamp

Return Type: void

ZenScript
Copy
Vector3f.clamp(min as Vector3f, max as Vector3f) as void
参数类型描述
参数
min
类型
Vector3f
描述
No Description Provided
参数
max
类型
Vector3f
描述
No Description Provided

Name: copy

Return Type: Vector3f

ZenScript
Copy
// Vector3f.copy() as Vector3f

myVector3f.copy();

Name: cross

Return Type: void

ZenScript
Copy
Vector3f.cross(other as Vector3f) as void
参数类型描述
参数
other
类型
Vector3f
描述
No Description Provided

Name: dot

Return Type: float

ZenScript
Copy
Vector3f.dot(other as Vector3f) as float
参数类型描述
参数
other
类型
Vector3f
描述
No Description Provided

Name: lerp

Return Type: void

ZenScript
Copy
Vector3f.lerp(max as Vector3f, value as float) as void
参数类型描述
参数
max
类型
Vector3f
描述
No Description Provided
参数
类型
浮点数
描述
No Description Provided

Name: load

Return Type: void

ZenScript
Copy
Vector3f.load(other as Vector3f) as void
参数类型描述
参数
other
类型
Vector3f
描述
No Description Provided

Name: mul

Return Type: void

ZenScript
Copy
Vector3f.mul(scalar as float) as void
参数类型描述
参数
scalar
类型
浮点数
描述
No Description Provided

Name: mul

Return Type: void

ZenScript
Copy
Vector3f.mul(x as float, y as float, z as float) as void
参数类型描述
参数
x
类型
浮点数
描述
No Description Provided
参数
y
类型
浮点数
描述
No Description Provided
参数
z
类型
浮点数
描述
No Description Provided

Name: normalize

Return Type: boolean

ZenScript
Copy
// Vector3f.normalize() as boolean

myVector3f.normalize();

Name: rotation

Return Type: Quaternion

ZenScript
Copy
Vector3f.rotation(rads as float) as Quaternion
参数类型描述
参数
rads
类型
浮点数
描述
No Description Provided

Name: rotationDegrees

Return Type: Quaternion

ZenScript
Copy
Vector3f.rotationDegrees(degrees as float) as Quaternion
参数类型描述
参数
degrees
类型
浮点数
描述
No Description Provided

Name: setValues

Return Type: void

ZenScript
Copy
Vector3f.setValues(x as float, y as float, z as float) as void
参数类型描述
参数
x
类型
浮点数
描述
No Description Provided
参数
y
类型
浮点数
描述
No Description Provided
参数
z
类型
浮点数
描述
No Description Provided

Name: sub

Return Type: void

ZenScript
Copy
Vector3f.sub(other as Vector3f) as void
参数类型描述
参数
other
类型
Vector3f
描述
No Description Provided

Name: transform

Return Type: void

ZenScript
Copy
Vector3f.transform(matrix as Matrix3f) as void
参数类型描述
参数
matrix
类型
Matrix3f
描述
No Description Provided

Name: transform

Return Type: void

ZenScript
Copy
Vector3f.transform(quaternion as Quaternion) as void
参数类型描述
参数
quaternion
类型
Quaternion
描述
No Description Provided

Name: x

Return Type: float

ZenScript
Copy
// Vector3f.x() as float

myVector3f.x();

Name: y

Return Type: float

ZenScript
Copy
// Vector3f.y() as float

myVector3f.y();

Name: z

Return Type: float

ZenScript
Copy
// Vector3f.z() as float

myVector3f.z();
名称类型可获得可设置描述
名称
x
类型
浮点数
可获得
true
可设置
false
描述
No Description Provided
名称
y
类型
浮点数
可获得
true
可设置
false
描述
No Description Provided
名称
z
类型
浮点数
可获得
true
可设置
false
描述
No Description Provided