Class DirectionViewProvider
java.lang.Object
com.hypixel.hytale.math.hitdetection.view.DirectionViewProvider
- All Implemented Interfaces:
MatrixProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<DirectionViewProvider> static final Vector3dprotected final Vector3dprotected booleanprotected final Matrix4dprotected doubleprotected doubleprotected final Vector3dprotected final Vector3dprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionDirectionViewProvider(Matrix4d matrix, Vector3d position, Vector3d direction, Vector3d up) -
Method Summary
Modifier and TypeMethodDescriptionsetDirection(double yaw, double pitch) setDirection(double x, double y, double z) setDirection(Vector3d vec) setPosition(double x, double y, double z) setPosition(double x, double y, double z, double offsetX, double offsetY, double offsetZ) setPosition(Vector3d vec) setPosition(Vector3d vec, double offsetX, double offsetY, double offsetZ) setUp(double x, double y, double z) toString()
-
Field Details
-
CODEC
-
DEFAULT_UP
-
matrix
-
position
-
direction
-
up
-
yaw
protected double yaw -
pitch
protected double pitch -
yawOffset
protected double yawOffset -
pitchOffset
protected double pitchOffset -
invalid
protected boolean invalid
-
-
Constructor Details
-
DirectionViewProvider
public DirectionViewProvider() -
DirectionViewProvider
-
-
Method Details
-
getPosition
-
setPosition
-
setPosition
@Nonnull public DirectionViewProvider setPosition(@Nonnull Vector3d vec, double offsetX, double offsetY, double offsetZ) -
setPosition
-
setPosition
@Nonnull public DirectionViewProvider setPosition(double x, double y, double z, double offsetX, double offsetY, double offsetZ) -
getDirection
-
setDirection
-
setDirection
-
setDirection
-
setUp
-
getMatrix
- Specified by:
getMatrixin interfaceMatrixProvider
-
toString
-