A Vector3d object is a vector that uses three doubles for the directions.
They have several utility methods and getters.

Импорт класса

Link to импорт-класса

It might be required to import the class to avoid errors.
import crafttweaker.world.IVector3d

Создание нового объекта IVector3d

Link to создание-нового-объекта-ivector3d

If you ever find yourself in the need of creating a new IVector3d object, you can use this method:

ZenScript
Copy
//crafttweaker.world.IVector3d.create(double x, double y, double z);
crafttweaker.world.IVector3d.create(0.0D, 0.0D, 0.0D);
ZenGetterТип
ZenGetter
x
Тип
double
ZenGetter
y
Тип
double
ZenGetter
z
Тип
double
ZenGetter
normalized
Тип
IVector3d
  • double dotProduct(IVector3d other);
  • IVector3d crossProduct(IVector3d other);
  • IVector3d subtract(IVector3d other);
  • IVector3d subtractReverse(IVector3d other);
  • IVector3d add(IVector3d other);
  • double distanceTo(IVector3d other);
  • IVector3d scale(double factor);