Package net.minecraft.world.phys
Class Vec3
java.lang.Object
net.minecraft.world.phys.Vec3
- All Implemented Interfaces:
- Position
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionadd(double p_82521_, double p_82522_, double p_82523_) align(EnumSet<Direction.Axis> p_82518_) static Vec3atBottomCenterOf(Vec3i p_82540_) static Vec3atCenterOf(Vec3i p_82513_) static Vec3atLowerCornerOf(Vec3i p_82529_) static Vec3atLowerCornerWithOffset(Vec3i p_272866_, double p_273680_, double p_273668_, double p_273687_) booleancloserThan(Position p_82510_, double p_82511_) booleancloserThan(Vec3 p_312866_, double p_312928_, double p_312788_) static Vec3directionFromRotation(float p_82499_, float p_82500_) static Vec3directionFromRotation(Vec2 p_82504_) doubledistanceTo(Vec3 p_82555_) doubledistanceToSqr(double p_82532_, double p_82533_, double p_82534_) doubledistanceToSqr(Vec3 p_82558_) doublebooleanstatic Vec3fromRGB24(int p_82502_) doubleget(Direction.Axis p_82508_) inthashCode()doubledoubledoublelength()doublemultiply(double p_82543_, double p_82544_, double p_82545_) offsetRandom(RandomSource p_272810_, float p_273473_) reverse()scale(double p_82491_) subtract(double p_82493_, double p_82494_, double p_82495_) toString()org.joml.Vector3fstatic Vec3upFromBottomCenterOf(Vec3i p_82515_, double p_82516_) with(Direction.Axis p_193104_, double p_193105_) final doublex()xRot(float p_82497_) final doubley()yRot(float p_82525_) final doublez()zRot(float p_82536_) 
- 
Field Details- 
CODEC
- 
ZERO
- 
xpublic final double x
- 
ypublic final double y
- 
zpublic final double z
 
- 
- 
Constructor Details- 
Vec3public Vec3(double p_82484_, double p_82485_, double p_82486_) 
- 
Vec3public Vec3(org.joml.Vector3f p_253821_) 
 
- 
- 
Method Details- 
fromRGB24
- 
atLowerCornerOf
- 
atLowerCornerWithOffset
- 
atCenterOf
- 
atBottomCenterOf
- 
upFromBottomCenterOf
- 
vectorTo
- 
normalize
- 
dot
- 
cross
- 
subtract
- 
subtract
- 
add
- 
add
- 
closerThan
- 
distanceTo
- 
distanceToSqr
- 
distanceToSqrpublic double distanceToSqr(double p_82532_, double p_82533_, double p_82534_) 
- 
closerThan
- 
scale
- 
reverse
- 
multiply
- 
multiply
- 
offsetRandom
- 
lengthpublic double length()
- 
lengthSqrpublic double lengthSqr()
- 
horizontalDistancepublic double horizontalDistance()
- 
horizontalDistanceSqrpublic double horizontalDistanceSqr()
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
lerp
- 
xRot
- 
yRot
- 
zRot
- 
directionFromRotation
- 
directionFromRotation
- 
align
- 
get
- 
with
- 
relative
- 
xpublic final double x()
- 
ypublic final double y()
- 
zpublic final double z()
- 
toVector3fpublic org.joml.Vector3f toVector3f()
 
-