net.minecraft.world.phys

public class Vec3

implements Position

fby
net.minecraft.world.phys.Vec3
net.minecraft.class_243
net.minecraft.util.math.Vec3d
net.minecraft.world.phys.Vec3D

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Vec3>
a
CODEC
field_38277
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, Vec3>
b
STREAM_CODEC
field_52694
PACKET_CODEC
public static final Vec3
c
ZERO
field_1353
ZERO
public final double
d
x
field_1352
x
public final double
e
y
field_1351
y
public final double
f
z
field_1350
z

Constructor summary

ModifierConstructor
public (double x, double y, double z)
public (org.joml.Vector3f vec)
public (Vec3i vec)

Method summary

Modifier and TypeMethod
public static Vec3
a(int arg0)
fromRGB24(int arg0)
method_24457(int arg0)
unpackRgb(int rgb)
public static Vec3
a(kl arg0)
atLowerCornerOf(Vec3i arg0)
method_24954(class_2382 arg0)
of(Vec3i vec)
public static Vec3
a(kl arg0, double arg1, double arg2, double arg3)
atLowerCornerWithOffset(Vec3i arg0, double arg1, double arg2, double arg3)
method_49273(class_2382 arg0, double arg1, double arg2, double arg3)
add(Vec3i vec, double deltaX, double deltaY, double deltaZ)
public static Vec3
b(kl arg0)
atCenterOf(Vec3i arg0)
method_24953(class_2382 arg0)
ofCenter(Vec3i vec)
public static Vec3
c(kl arg0)
atBottomCenterOf(Vec3i arg0)
method_24955(class_2382 arg0)
ofBottomCenter(Vec3i vec)
public static Vec3
a(kl arg0, double arg1)
upFromBottomCenterOf(Vec3i arg0, double arg1)
method_26410(class_2382 arg0, double arg1)
ofCenter(Vec3i vec, double deltaY)
public Vec3
a(fby arg0)
vectorTo(Vec3 arg0)
method_1035(class_243 arg0)
relativize(Vec3d vec)
public Vec3
d()
normalize()
method_1029()
normalize()
public double
b(fby arg0)
dot(Vec3 arg0)
method_1026(class_243 arg0)
dotProduct(Vec3d vec)
public Vec3
c(fby arg0)
cross(Vec3 arg0)
method_1036(class_243 arg0)
crossProduct(Vec3d vec)
public Vec3
d(fby arg0)
subtract(Vec3 arg0)
method_1020(class_243 arg0)
subtract(Vec3d vec)
public Vec3
a(double arg0)
subtract(double arg0)
method_61888(double arg0)
subtract(double value)
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)
public Vec3
b(double arg0)
add(double arg0)
method_61889(double arg0)
add(double value)
public Vec3
e(fby arg0)
add(Vec3 arg0)
method_1019(class_243 arg0)
add(Vec3d vec)
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)
public boolean
a(ka arg0, double arg1)
closerThan(Position arg0, double arg1)
method_24802(class_2374 arg0, double arg1)
isInRange(Position pos, double radius)
public double
f(fby arg0)
distanceTo(Vec3 arg0)
method_1022(class_243 arg0)
distanceTo(Vec3d vec)
public double
g(fby arg0)
distanceToSqr(Vec3 arg0)
method_1025(class_243 arg0)
squaredDistanceTo(Vec3d vec)
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)
public boolean
a(fby arg0, double arg1, double arg2)
closerThan(Vec3 arg0, double arg1, double arg2)
method_55230(class_243 arg0, double arg1, double arg2)
isWithinRangeOf(Vec3d vec, double horizontalRange, double verticalRange)
public Vec3
c(double arg0)
scale(double arg0)
method_1021(double arg0)
multiply(double value)
public Vec3
e()
reverse()
method_22882()
negate()
public Vec3
h(fby arg0)
multiply(Vec3 arg0)
method_18806(class_243 arg0)
multiply(Vec3d vec)
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)
public Vec3
f()
horizontal()
method_61890()
getHorizontal()
public Vec3
a(bam arg0, float arg1)
offsetRandom(RandomSource arg0, float arg1)
method_49272(class_5819 arg0, float arg1)
addRandom(Random random, float multiplier)
public double
g()
length()
method_1033()
length()
public double
h()
lengthSqr()
method_1027()
lengthSquared()
public double
i()
horizontalDistance()
method_37267()
horizontalLength()
public double
j()
horizontalDistanceSqr()
method_37268()
horizontalLengthSquared()
public Vec3
a(fby arg0, double arg1)
lerp(Vec3 arg0, double arg1)
method_35590(class_243 arg0, double arg1)
lerp(Vec3d to, double delta)
public Vec3
a(float arg0)
xRot(float arg0)
method_1037(float arg0)
rotateX(float angle)
public Vec3
b(float arg0)
yRot(float arg0)
method_1024(float arg0)
rotateY(float angle)
public Vec3
c(float arg0)
zRot(float arg0)
method_31033(float arg0)
rotateZ(float angle)
public static Vec3
a(fbx arg0)
directionFromRotation(Vec2 arg0)
method_1034(class_241 arg0)
fromPolar(Vec2f polar)
public static Vec3
a(float arg0, float arg1)
directionFromRotation(float arg0, float arg1)
method_1030(float arg0, float arg1)
fromPolar(float pitch, float yaw)
public Vec3
a(EnumSet<jm$a> arg0)
align(EnumSet<Direction$Axis> arg0)
method_1032(EnumSet<class_2350$class_2351> arg0)
floorAlongAxes(EnumSet<Direction$Axis> axes)
public double
a(jm$a arg0)
get(Direction$Axis arg0)
method_18043(class_2350$class_2351 arg0)
getComponentAlongAxis(Direction$Axis axis)
public Vec3
a(jm$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)
public Vec3
a(jm arg0, double arg1)
relative(Direction arg0, double arg1)
method_43206(class_2350 arg0, double arg1)
offset(Direction direction, double value)
public final double
a()
x()
method_10216()
getX()
public final double
b()
y()
method_10214()
getY()
public final double
c()
z()
method_10215()
getZ()
public org.joml.Vector3f
k()
toVector3f()
method_46409()
toVector3f()
public Vec3
i(fby arg0)
projectedOn(Vec3 arg0)
method_64316(class_243 arg0)
projectOnto(Vec3d vec)