net.minecraft.world.phys

public class Vec3

implements Position

dwq
net.minecraft.world.phys.Vec3
net.minecraft.class_243
net.minecraft.util.math.Vec3d
net.minecraft.src.C_3046_
net.minecraft.world.phys.Vec3D

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Vec3>
a
CODEC
field_38277
CODEC
f_231074_
public static final Vec3
b
ZERO
field_1353
ZERO
f_82478_
public final double
c
x
field_1352
x
f_82479_
public final double
d
y
field_1351
y
f_82480_
public final double
e
z
field_1350
z
f_82481_

Constructor summary

ModifierConstructor
public (double x, double y, double z)
public (Vector3f vec)

Method summary

Modifier and TypeMethod
public static Vec3
a(int arg0)
fromRGB24(int arg0)
method_24457(int arg0)
unpackRgb(int rgb)
m_82501_(int p_82502_)
public static Vec3
a(hs arg0)
atCenterOf(Vec3i arg0)
method_24953(class_2382 arg0)
ofCenter(Vec3i vec)
m_82512_(C_4713_ p_82513_)
public static Vec3
b(hs arg0)
atLowerCornerOf(Vec3i arg0)
method_24954(class_2382 arg0)
of(Vec3i vec)
m_82528_(C_4713_ p_82529_)
public static Vec3
c(hs arg0)
atBottomCenterOf(Vec3i arg0)
method_24955(class_2382 arg0)
ofBottomCenter(Vec3i vec)
m_82539_(C_4713_ p_82540_)
public static Vec3
a(hs arg0, double arg1)
upFromBottomCenterOf(Vec3i arg0, double arg1)
method_26410(class_2382 arg0, double arg1)
ofCenter(Vec3i vec, double deltaY)
m_82514_(C_4713_ p_82515_, double p_82516_)
public Vec3
a(dwq arg0)
vectorTo(Vec3 arg0)
method_1035(class_243 arg0)
relativize(Vec3d vec)
m_82505_(C_3046_ arg0)
public Vec3
d()
normalize()
method_1029()
normalize()
m_82541_()
public double
b(dwq arg0)
dot(Vec3 arg0)
method_1026(class_243 arg0)
dotProduct(Vec3d vec)
m_82526_(C_3046_ arg0)
public Vec3
c(dwq arg0)
cross(Vec3 arg0)
method_1036(class_243 arg0)
crossProduct(Vec3d vec)
m_82537_(C_3046_ arg0)
public Vec3
d(dwq arg0)
subtract(Vec3 arg0)
method_1020(class_243 arg0)
subtract(Vec3d vec)
m_82546_(C_3046_ arg0)
public Vec3
a(double arg0, double arg1, double arg2)
subtract(double arg0, double arg1, double arg2)
method_1023(double arg0, double arg1, double arg2)
subtract(double x, double y, double z)
m_82492_(double p_82494_, double arg1, double arg2)
public Vec3
e(dwq arg0)
add(Vec3 arg0)
method_1019(class_243 arg0)
add(Vec3d vec)
m_82549_(C_3046_ arg0)
public Vec3
b(double arg0, double arg1, double arg2)
add(double arg0, double arg1, double arg2)
method_1031(double arg0, double arg1, double arg2)
add(double x, double y, double z)
m_82520_(double p_82522_, double arg1, double arg2)
public boolean
a(hj arg0, double arg1)
closerThan(Position arg0, double arg1)
method_24802(class_2374 arg0, double arg1)
isInRange(Position pos, double radius)
m_82509_(C_4703_ p_82511_, double arg1)
public double
f(dwq arg0)
distanceTo(Vec3 arg0)
method_1022(class_243 arg0)
distanceTo(Vec3d vec)
m_82554_(C_3046_ arg0)
public double
g(dwq arg0)
distanceToSqr(Vec3 arg0)
method_1025(class_243 arg0)
squaredDistanceTo(Vec3d vec)
m_82557_(C_3046_ arg0)
public double
c(double arg0, double arg1, double arg2)
distanceToSqr(double arg0, double arg1, double arg2)
method_1028(double arg0, double arg1, double arg2)
squaredDistanceTo(double x, double y, double z)
m_82531_(double p_82533_, double arg1, double arg2)
public Vec3
a(double arg0)
scale(double arg0)
method_1021(double arg0)
multiply(double value)
m_82490_(double arg0)
public Vec3
e()
reverse()
method_22882()
negate()
m_82548_()
public Vec3
h(dwq arg0)
multiply(Vec3 arg0)
method_18806(class_243 arg0)
multiply(Vec3d vec)
m_82559_(C_3046_ arg0)
public Vec3
d(double arg0, double arg1, double arg2)
multiply(double arg0, double arg1, double arg2)
method_18805(double arg0, double arg1, double arg2)
multiply(double x, double y, double z)
m_82542_(double p_82544_, double arg1, double arg2)
public double
f()
length()
method_1033()
length()
m_82553_()
public double
g()
lengthSqr()
method_1027()
lengthSquared()
m_82556_()
public double
h()
horizontalDistance()
method_37267()
horizontalLength()
m_165924_()
public double
i()
horizontalDistanceSqr()
method_37268()
horizontalLengthSquared()
m_165925_()
public Vec3
a(dwq arg0, double arg1)
lerp(Vec3 arg0, double arg1)
method_35590(class_243 arg0, double arg1)
lerp(Vec3d to, double delta)
m_165921_(C_3046_ p_165923_, double arg1)
public Vec3
a(float arg0)
xRot(float arg0)
method_1037(float arg0)
rotateX(float angle)
m_82496_(float arg0)
public Vec3
b(float arg0)
yRot(float arg0)
method_1024(float arg0)
rotateY(float angle)
m_82524_(float arg0)
public Vec3
c(float arg0)
zRot(float arg0)
method_31033(float arg0)
rotateZ(float angle)
m_82535_(float arg0)
public static Vec3
a(dwp arg0)
directionFromRotation(Vec2 arg0)
method_1034(class_241 arg0)
fromPolar(Vec2f polar)
m_82503_(C_3045_ p_82504_)
public static Vec3
a(float arg0, float arg1)
directionFromRotation(float arg0, float arg1)
method_1030(float arg0, float arg1)
fromPolar(float pitch, float yaw)
m_82498_(float p_82499_, float p_82500_)
public Vec3
a(EnumSet<gy$a> arg0)
align(EnumSet<Direction$Axis> arg0)
method_1032(EnumSet<class_2350$class_2351> arg0)
floorAlongAxes(EnumSet<Direction$Axis> axes)
m_82517_(EnumSet<C_4689_> arg0)
public double
a(gy$a arg0)
get(Direction$Axis arg0)
method_18043(class_2350$class_2351 arg0)
getComponentAlongAxis(Direction$Axis axis)
m_82507_(C_4689_ arg0)
public Vec3
a(gy$a arg0, double arg1)
with(Direction$Axis arg0, double arg1)
method_38499(class_2350$class_2351 arg0, double arg1)
withAxis(Direction$Axis axis, double value)
m_193103_(C_4689_ p_193105_, double arg1)
public Vec3
a(gy arg0, double arg1)
relative(Direction arg0, double arg1)
method_43206(class_2350 arg0, double arg1)
withBias(Direction direction, double value)
m_231075_(C_4687_ p_231077_, double arg1)
public final double
a()
x()
method_10216()
getX()
m_7096_()
public final double
b()
y()
method_10214()
getY()
m_7098_()
public final double
c()
z()
method_10215()
getZ()
m_7094_()