Class HeadRotation
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.HeadRotation
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getAxis()static Vector3igetAxisDirection(float pitch, float yaw, Vector3i result) getAxisDirection(Vector3i result) static ComponentType<EntityStore, HeadRotation> private static Vector3dgetDirection(float pitch, float yaw, Vector3d result) voidsetRotation(Vector3f rotation) voidteleportRotation(Vector3f rotation) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
rotation
-
-
Constructor Details
-
HeadRotation
public HeadRotation() -
HeadRotation
-
-
Method Details
-
getComponentType
-
getRotation
-
setRotation
-
getDirection
-
getAxisDirection
-
getAxisDirection
-
getHorizontalAxisDirection
-
getAxis
-
getAxisDirection
-
getDirection
-
teleportRotation
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-