Class FreecamPos
-
- All Implemented Interfaces:
public final class FreecamPos
-
-
Field Summary
Fields Modifier and Type Field Description private Double
x
private Double
y
private Double
z
private Float
pitch
private Float
yaw
private final Quaternionf
rotation
private final Vector3f
verticalPlane
private final Vector3f
diagonalPlane
private final Vector3f
horizontalPlane
-
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 Double
getX()
final Unit
setX(Double x)
final Double
getY()
final Unit
setY(Double y)
final Double
getZ()
final Unit
setZ(Double z)
final Float
getPitch()
final Unit
setPitch(Float pitch)
final Float
getYaw()
final Unit
setYaw(Float yaw)
final Quaternionf
getRotation()
final Vector3f
getVerticalPlane()
final Vector3f
getDiagonalPlane()
final Vector3f
getHorizontalPlane()
final Unit
setRotation(Float yaw, Float pitch)
final Unit
mirrorRotation()
final Unit
moveForward(Double distance)
final Unit
move(Double fwd, Double up, Double right)
final ChunkPos
getChunkPos()
final Double
getSwimmingY(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)
-
-
-
-