public class SensorPath extends SensorBase
Class SensorPath. Provides sensorpath functionality for the Hytale server.
java.lang.Object > SensorBase > SensorPath
Field Summary
path
protected
String
path
Field path.
pathIndex
protected
int
pathIndex
Field pathIndex.
pathChangeRevision
protected
int
pathChangeRevision
Field pathChangeRevision.
distanceSquared
protected
double
distanceSquared
Field distanceSquared.
loadStatus
protected
LoadStatus
loadStatus
Field loadStatus.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
npcComponent
final
NPCEntity
npcComponent
Field npcComponent.
position
final
Vector3d
position
Field position.
pathManager
final
PathManager
pathManager
Field pathManager.
newRevision
final
int
newRevision
Field newRevision.
newPathRequested
final
boolean
newPathRequested
Field newPathRequested.
pathId
final
UUID
pathId
Field pathId.
world
final
World
world
Field world.
worldGenIdComponent
final
WorldGenId
worldGenIdComponent
Field worldGenIdComponent.
worldGenId
final
int
worldGenId
Field worldGenId.
worldPathData
final
WorldPathData
worldPathData
Field worldPathData.
entityPath
final
UUID
entityPath
Field entityPath.
eRef
final
Ref
eRef
Field eRef.
ePatrolPathMarkerEntityComponent
final
PatrolPathMarkerEntity
ePatrolPathMarkerEntityComponent
Field ePatrolPathMarkerEntityComponent.
eTransformComponent
final
TransformComponent
eTransformComponent
Field eTransformComponent.
dist2
final
double
dist2
Field dist2.
prevDistanceSquared
final
double
prevDistanceSquared
Field prevDistanceSquared.
newDistance
final
double
newDistance
Field newDistance.
pathWaypoint
final
IPathWaypoint
pathWaypoint
Field pathWaypoint.
waypoint
final
Vector3d
waypoint
Field waypoint.
distance
final
double
distance
Field distance.
Method Detail
SensorPath
public
public
SensorPath
(@Nonnull final BuilderSensorPath builder, @Nonnull final BuilderSupport support)
Method SensorPath.
- Parameters:
@Nonnull final BuilderSensorPathbuilder@Nonnull final BuilderSupportsupport
matches
public
boolean
matches
(@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)
Method matches.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerolefinal doubledt@Nonnull final Storestore
WorldGenId
public
new
WorldGenId
(((IPrefabPath)
Method WorldGenId.
- Parameters:
((IPrefabPath((IPrefabPath
isInRange
protected
boolean
isInRange
(final double squaredDistance)
Method isInRange.
- Parameters:
final doublesquaredDistance
findPath
protected
IPath>
findPath
(@Nonnull final Ref ref, @Nonnull final Vector3d position, @Nonnull final Store store, @Nonnull final Set disallowedPaths, final boolean newPathRequested)
Method findPath.
- Parameters:
@Nonnull final Refref@Nonnull final Vector3dposition@Nonnull final Storestore@Nonnull final SetdisallowedPathsfinal booleannewPathRequested
findClosestWaypoint
protected
void
findClosestWaypoint
(@Nonnull final IPath> path, @Nonnull final Vector3d position, @Nonnull final Vector3d cachedTarget, @Nonnull final ComponentAccessor componentAccessor)
Method findClosestWaypoint.
- Parameters:
@Nonnull final IPath>path@Nonnull final Vector3dposition@Nonnull final Vector3dcachedTarget@Nonnull final ComponentAccessorcomponentAccessor
path
public
transient
path
(testing purposes only)
Method path.
- Parameters:
testing purposesonly
PathType
public
private
PathType
(final String description)
Method PathType.
- Parameters:
final Stringdescription
get
public
String
get
()
Method get.