Contents
Class SimplePathWaypoint
java.lang.Object
com.hypixel.hytale.server.core.universe.world.path.SimplePathWaypoint
- All Implemented Interfaces:
IPathWaypoint
A simple path waypoint with only a direction and rotation (transform)
Created on 17/08/2018
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the observation angle for the waypoint, i.e. how much an entity should be able to rotate while paused at itintgetOrder()Returns the index of this waypoint within the ordered pathdoubleReturns how long a pause is designated to be performed at the waypointorg.joml.Vector3dgetWaypointPosition(ComponentAccessor<EntityStore> componentAccessor) Returns the position of this waypointgetWaypointRotation(ComponentAccessor<EntityStore> componentAccessor) Returns the rotation of this waypoint
-
Constructor Details
-
SimplePathWaypoint
-
-
Method Details
-
getOrder
public int getOrder()Description copied from interface:IPathWaypointReturns the index of this waypoint within the ordered path- Specified by:
getOrderin interfaceIPathWaypoint- Returns:
- index of the waypoint
-
getWaypointPosition
@Nonnull public org.joml.Vector3d getWaypointPosition(@Nonnull ComponentAccessor<EntityStore> componentAccessor) Description copied from interface:IPathWaypointReturns the position of this waypoint- Specified by:
getWaypointPositionin interfaceIPathWaypoint- Parameters:
componentAccessor- TheComponentAccessor<EntityStore>for component access.- Returns:
- waypoint position
-
getWaypointRotation
@Nonnull public Rotation3f getWaypointRotation(@Nonnull ComponentAccessor<EntityStore> componentAccessor) Description copied from interface:IPathWaypointReturns the rotation of this waypoint- Specified by:
getWaypointRotationin interfaceIPathWaypoint- Parameters:
componentAccessor- TheComponentAccessor<EntityStore>for component access.- Returns:
- waypoint rotation
-
getPauseTime
public double getPauseTime()Description copied from interface:IPathWaypointReturns how long a pause is designated to be performed at the waypoint- Specified by:
getPauseTimein interfaceIPathWaypoint- Returns:
- pause length
-
getObservationAngle
public float getObservationAngle()Description copied from interface:IPathWaypointReturns the observation angle for the waypoint, i.e. how much an entity should be able to rotate while paused at it- Specified by:
getObservationAnglein interfaceIPathWaypoint- Returns:
- the observation angle
-