Class FreecamPos
-
- All Implemented Interfaces:
public final class FreecamPos
-
-
Field Summary
Fields Modifier and Type Field Description private Doublexprivate Doubleyprivate Doublezprivate Floatpitchprivate Floatyawprivate final Quaternionfrotationprivate final Vector3fverticalPlaneprivate final Vector3fdiagonalPlaneprivate final Vector3fhorizontalPlane
-
Constructor Summary
Constructors Constructor Description FreecamPos(Entity entity)FreecamPos(Double x, Double y, Double z, Float yaw, Float pitch)FreecamPos(Vec3 pos, Float yaw, Float pitch)
-
Method Summary
Modifier and Type Method Description final DoublegetX()final UnitsetX(Double x)final DoublegetY()final UnitsetY(Double y)final DoublegetZ()final UnitsetZ(Double z)final FloatgetPitch()final UnitsetPitch(Float pitch)final FloatgetYaw()final UnitsetYaw(Float yaw)final QuaternionfgetRotation()final Vector3fgetVerticalPlane()final Vector3fgetDiagonalPlane()final Vector3fgetHorizontalPlane()final UnitsetRotation(Float yaw, Float pitch)final UnitmirrorRotation()final UnitmoveForward(Double distance)final Unitmove(Double fwd, Double up, Double right)final ChunkPosgetChunkPos()final DoublegetSwimmingY(Entity entity)-
-
Method Detail
-
getRotation
final Quaternionf getRotation()
-
getVerticalPlane
final Vector3f getVerticalPlane()
-
getDiagonalPlane
final Vector3f getDiagonalPlane()
-
getHorizontalPlane
final Vector3f getHorizontalPlane()
-
setRotation
final Unit setRotation(Float yaw, Float pitch)
-
mirrorRotation
final Unit mirrorRotation()
-
moveForward
final Unit moveForward(Double distance)
-
getChunkPos
final ChunkPos getChunkPos()
-
getSwimmingY
final Double getSwimmingY(Entity entity)
-
-
-
-