net.minecraft.world.phys

public class Vec3

implements Position

exc
net.minecraft.world.phys.Vec3
net.minecraft.class_243
net.minecraft.unmapped.C_vgpupfxx
net.minecraft.util.math.Vec3d
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
f_wqbdtlcm
CODEC
CODEC
f_231074_
public static final Vec3
b
ZERO
field_1353
f_ajarpvjd
ZERO
ZERO
f_82478_
public final double
c
x
field_1352
f_lqljvjwr
x
x
f_82479_
public final double
d
y
field_1351
f_soxpmyqi
y
y
f_82480_
public final double
e
z
field_1350
f_ipicmfad
z
z
f_82481_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static Vec3
a(int arg0)
fromRGB24(int arg0)
method_24457(int arg0)
m_ydmcvwmi(int arg0)
unpackRgb(int rgb)
unpackRgb(int rgb)
m_82501_(int p_82502_)
public static Vec3
a(kh arg0)
atLowerCornerOf(Vec3i arg0)
method_24954(class_2382 arg0)
m_mjeeyswf(C_ceivtqhh arg0)
of(Vec3i vec)
of(Vec3i vec)
m_82528_(C_4713_ p_82529_)
public static Vec3
a(kh 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)
m_tqvkptxg(C_ceivtqhh arg0, double arg1, double arg2, double arg3)
add(Vec3i vec, double deltaX, double deltaY, double deltaZ)
offset(Vec3i vec, double x, double y, double z)
m_272021_(C_4713_ p_272866_, double p_273680_, double p_273687_, double arg3)
public static Vec3
b(kh arg0)
atCenterOf(Vec3i arg0)
method_24953(class_2382 arg0)
m_yaeawcur(C_ceivtqhh arg0)
ofCenter(Vec3i vec)
ofCenter(Vec3i vec)
m_82512_(C_4713_ p_82513_)
public static Vec3
c(kh arg0)
atBottomCenterOf(Vec3i arg0)
method_24955(class_2382 arg0)
m_ucmasgtt(C_ceivtqhh arg0)
ofBottomCenter(Vec3i vec)
ofBottomCenter(Vec3i vec)
m_82539_(C_4713_ p_82540_)
public static Vec3
a(kh arg0, double arg1)
upFromBottomCenterOf(Vec3i arg0, double arg1)
method_26410(class_2382 arg0, double arg1)
m_fxxujqjs(C_ceivtqhh arg0, double arg1)
ofCenter(Vec3i vec, double deltaY)
ofCenter(Vec3i vec, double deltaY)
m_82514_(C_4713_ p_82515_, double p_82516_)
public Vec3
a(exc arg0)
vectorTo(Vec3 arg0)
method_1035(class_243 arg0)
m_ozbglzhr(C_vgpupfxx arg0)
relativize(Vec3d vec)
relativize(Vec3d vec)
m_82505_(C_3046_ arg0)
public Vec3
d()
normalize()
method_1029()
m_jkqlgsab()
normalize()
normalize()
m_82541_()
public double
b(exc arg0)
dot(Vec3 arg0)
method_1026(class_243 arg0)
m_ucyqfjmh(C_vgpupfxx arg0)
dotProduct(Vec3d vec)
dotProduct(Vec3d vec)
m_82526_(C_3046_ arg0)
public Vec3
c(exc arg0)
cross(Vec3 arg0)
method_1036(class_243 arg0)
m_wgagsgsw(C_vgpupfxx arg0)
crossProduct(Vec3d vec)
crossProduct(Vec3d vec)
m_82537_(C_3046_ arg0)
public Vec3
d(exc arg0)
subtract(Vec3 arg0)
method_1020(class_243 arg0)
m_gwcsdigx(C_vgpupfxx arg0)
subtract(Vec3d vec)
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)
m_bmuezmjb(double arg0, double arg1, double arg2)
subtract(double x, double y, double z)
subtract(double x, double y, double z)
m_82492_(double p_82494_, double arg1, double arg2)
public Vec3
e(exc arg0)
add(Vec3 arg0)
method_1019(class_243 arg0)
m_bywaolrt(C_vgpupfxx arg0)
add(Vec3d vec)
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)
m_yerpdxmq(double arg0, double arg1, double arg2)
add(double x, double y, double z)
add(double x, double y, double z)
m_82520_(double p_82522_, double arg1, double arg2)
public boolean
a(jw arg0, double arg1)
closerThan(Position arg0, double arg1)
method_24802(class_2374 arg0, double arg1)
m_fxwxkkfw(C_ogbhoqwb arg0, double arg1)
isInRange(Position pos, double radius)
withinRange(Position pos, double range)
m_82509_(C_4703_ p_82511_, double arg1)
public double
f(exc arg0)
distanceTo(Vec3 arg0)
method_1022(class_243 arg0)
m_alqruvpu(C_vgpupfxx arg0)
distanceTo(Vec3d vec)
distanceTo(Vec3d vec)
m_82554_(C_3046_ arg0)
public double
g(exc arg0)
distanceToSqr(Vec3 arg0)
method_1025(class_243 arg0)
m_knojbyrn(C_vgpupfxx arg0)
squaredDistanceTo(Vec3d vec)
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)
m_qylyuhwf(double arg0, double arg1, double arg2)
squaredDistanceTo(double x, double y, double z)
squaredDistanceTo(double x, double y, double z)
m_82531_(double p_82533_, double arg1, double arg2)
public boolean
a(exc arg0, double arg1, double arg2)
closerThan(Vec3 arg0, double arg1, double arg2)
method_55230(class_243 arg0, double arg1, double arg2)
m_erobapya(C_vgpupfxx arg0, double arg1, double arg2)
isWithinRangeOf(Vec3d vec, double horizontalRange, double verticalRange)
withinRange(Vec3d vec, double horizontalRange, double verticalRange)
m_306338_(C_3046_ p_312797_, double p_311239_, double arg2)
public Vec3
a(double arg0)
scale(double arg0)
method_1021(double arg0)
m_kcgfovqu(double arg0)
multiply(double value)
multiply(double value)
m_82490_(double arg0)
public Vec3
e()
reverse()
method_22882()
m_xoqeggbq()
negate()
negate()
m_82548_()
public Vec3
h(exc arg0)
multiply(Vec3 arg0)
method_18806(class_243 arg0)
m_bqpgrsvq(C_vgpupfxx arg0)
multiply(Vec3d vec)
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)
m_pxdtoofl(double arg0, double arg1, double arg2)
multiply(double x, double y, double z)
multiply(double x, double y, double z)
m_82542_(double p_82544_, double arg1, double arg2)
public Vec3
a(ayw arg0, float arg1)
offsetRandom(RandomSource arg0, float arg1)
method_49272(class_5819 arg0, float arg1)
m_sjkminor(C_rlomrsco arg0, float arg1)
addRandom(Random random, float multiplier)
addRandom(RandomGenerator random, float multiplier)
m_272010_(C_212974_ p_273473_, float arg1)
public double
f()
length()
method_1033()
m_xzfjxhqg()
length()
length()
m_82553_()
public double
g()
lengthSqr()
method_1027()
m_bbbnszun()
lengthSquared()
lengthSquared()
m_82556_()
public double
h()
horizontalDistance()
method_37267()
m_avcmfjmm()
horizontalLength()
horizontalLength()
m_165924_()
public double
i()
horizontalDistanceSqr()
method_37268()
m_gnztuhtx()
horizontalLengthSquared()
horizontalLengthSquared()
m_165925_()
public Vec3
a(exc arg0, double arg1)
lerp(Vec3 arg0, double arg1)
method_35590(class_243 arg0, double arg1)
m_shdqcefd(C_vgpupfxx arg0, double arg1)
lerp(Vec3d to, double delta)
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)
m_zwrevhbe(float arg0)
rotateX(float angle)
rotateX(float angle)
m_82496_(float arg0)
public Vec3
b(float arg0)
yRot(float arg0)
method_1024(float arg0)
m_pyyhhggs(float arg0)
rotateY(float angle)
rotateY(float angle)
m_82524_(float arg0)
public Vec3
c(float arg0)
zRot(float arg0)
method_31033(float arg0)
m_xmwspcmd(float arg0)
rotateZ(float angle)
rotateZ(float angle)
m_82535_(float arg0)
public static Vec3
a(exb arg0)
directionFromRotation(Vec2 arg0)
method_1034(class_241 arg0)
m_ltdapexq(C_krlwdsom arg0)
fromPolar(Vec2f polar)
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)
m_inkhpppd(float arg0, float arg1)
fromPolar(float pitch, float yaw)
fromPolar(float pitch, float yaw)
m_82498_(float p_82499_, float p_82500_)
public Vec3
a(EnumSet<ji$a> arg0)
align(EnumSet<Direction$Axis> arg0)
method_1032(EnumSet<class_2350$class_2351> arg0)
m_awjlkdrp(EnumSet<C_xpuuihxf$C_rmpfouoz> arg0)
floorAlongAxes(EnumSet<Direction$Axis> axes)
floorAlongAxes(EnumSet<Direction$Axis> axes)
m_82517_(EnumSet<C_4687_$C_4689_> arg0)
public double
a(ji$a arg0)
get(Direction$Axis arg0)
method_18043(class_2350$class_2351 arg0)
m_vyabsuqr(C_xpuuihxf$C_rmpfouoz arg0)
getComponentAlongAxis(Direction$Axis axis)
getComponentAlongAxis(Direction$Axis axis)
m_82507_(C_4687_$C_4689_ arg0)
public Vec3
a(ji$a arg0, double arg1)
with(Direction$Axis arg0, double arg1)
method_38499(class_2350$class_2351 arg0, double arg1)
m_bsprbtfk(C_xpuuihxf$C_rmpfouoz arg0, double arg1)
withAxis(Direction$Axis axis, double value)
withAxis(Direction$Axis axis, double value)
m_193103_(C_4687_$C_4689_ p_193105_, double arg1)
public Vec3
a(ji arg0, double arg1)
relative(Direction arg0, double arg1)
method_43206(class_2350 arg0, double arg1)
m_wfythugr(C_xpuuihxf arg0, double arg1)
offset(Direction direction, double value)
relative(Direction direction, double value)
m_231075_(C_4687_ p_231077_, double arg1)
public final double
a()
x()
method_10216()
m_ujaurviz()
getX()
getX()
m_7096_()
public final double
b()
y()
method_10214()
m_yaqtphqv()
getY()
getY()
m_7098_()
public final double
c()
z()
method_10215()
m_kopyfzdg()
getZ()
getZ()
m_7094_()
public org.joml.Vector3f
j()
toVector3f()
method_46409()
m_sruzucpd()
toVector3f()
toVector3f()
m_252839_()