JavaScript is disabled on your browser.
Description
Nested Class Summary
Enum Constant Summary
Field Summary
Method Summary
Enum Constant Details
VERTICAL
LONGITUDINAL
LATERAL
RADIAL
AZIMUTHAL
NUTATIONAL
TORSIONAL
Field Details
CODEC
Method Details
values()
valueOf(String)
getReferenceAxis(Entity)
getImpulseVector(Entity, Vec3, Vec3)
getSerializedName()
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S>
Enum Constant Summary
Enum Constants
Points tangentially around the
VERTICAL axis ($\vec{r} \times \hat{u}_{\text{vertical}}$),
producing horizontal yaw-plane orbital motion.
Aligns with the reference entity's horizontal right vector ($\text{forward} \times \text{up}$, or $+X$ if no entity is present).
Aligns with the reference entity's direct line of sight (forward view vector, or $+Z$ if no entity is present).
Points tangentially around the
LATERAL axis ($\vec{r} \times \hat{u}_{\text{lateral}}$),
producing longitudinal pitching orbital motion.
Points radially outward from offsetEpicenter toward targetPos.
Points tangentially around the
LONGITUDINAL axis ($\vec{r} \times \hat{u}_{\text{longitudinal}}$),
producing lateral rolling orbital motion.
Aligns with the reference entity's local up vector (or the global $+Y$ axis if no entity is present).
Field Summary
Fields
static final com.mojang.serialization.Codec<FieldAxis >
Codec for serializing and deserializing
FieldAxis constants by their lowercase identifier.
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
abstract net.minecraft.world.phys.Vec3
getImpulseVector (net.minecraft.world.entity.Entity spatialReference,
net.minecraft.world.phys.Vec3 offsetEpicenter,
net.minecraft.world.phys.Vec3 targetPos)
Computes the normalized kinetic impulse vector at targetPos relative to offsetEpicenter.
abstract net.minecraft.world.phys.Vec3
Retrieves the normalized primary reference axis vector based on the entity's orientation.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf