PatrolPathMarkerEntity

public class PatrolPathMarkerEntity extends Entity implements IPrefabPathWaypoint

Class PatrolPathMarkerEntity. Provides patrolpathmarkerentity functionality for the Hytale server.

java.lang.Object > Entity > PatrolPathMarkerEntity

Field Summary

pathId

private UUID pathId

Field pathId.

pathName

private String pathName

Field pathName.

order

private int order

Field order.

pauseTime

private double pauseTime

Field pauseTime.

observationAngle

private float observationAngle

Field observationAngle.

tempPathLength

private short tempPathLength

Field tempPathLength.

parentPath

private IPrefabPath parentPath

Field parentPath.

worldPathData

final WorldPathData worldPathData

Field worldPathData.

playerComponent

final Player playerComponent

Field playerComponent.

ref

final Ref ref

Field ref.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

Method Detail

getComponentType

public PatrolPathMarkerEntity> getComponentType ()

Method getComponentType.

PatrolPathMarkerEntity

public public PatrolPathMarkerEntity ()

Method PatrolPathMarkerEntity.

setParentPath

public void setParentPath (final IPrefabPath parentPath)

Method setParentPath.

Parameters:
final IPrefabPath parentPath

getPathId

public UUID getPathId ()

Method getPathId.

setPathId

public void setPathId (final UUID pathId)

Method setPathId.

Parameters:
final UUID pathId

getPathName

public String getPathName ()

Method getPathName.

setPathName

public void setPathName (final String pathName)

Method setPathName.

Parameters:
final String pathName

generateDisplayName

static String generateDisplayName (final int worldgenId, final PatrolPathMarkerEntity patrolPathMarkerEntity)

Method generateDisplayName.

Parameters:
final int worldgenId
final PatrolPathMarkerEntity patrolPathMarkerEntity

getTempPathLength

public short getTempPathLength ()

Method getTempPathLength.

initialise

public void initialise (@Nonnull final UUID id, @Nonnull final String pathName, final int index, final double pauseTime, final float observationAngle, final int worldGenId, @Nonnull final ComponentAccessor componentAccessor)

Method initialise.

Parameters:
@Nonnull final UUID id
@Nonnull final String pathName
final int index
final double pauseTime
final float observationAngle
final int worldGenId
@Nonnull final ComponentAccessor componentAccessor

getParentPath

public IPath getParentPath ()

Method getParentPath.

isCollidable

public boolean isCollidable ()

Method isCollidable.

isHiddenFromLivingEntity

public boolean isHiddenFromLivingEntity (@Nonnull final Ref ref, @Nonnull final Ref targetRef, @Nonnull final ComponentAccessor componentAccessor)

Method isHiddenFromLivingEntity.

Parameters:
@Nonnull final Ref ref
@Nonnull final Ref targetRef
@Nonnull final ComponentAccessor componentAccessor

getOrder

public int getOrder ()

Method getOrder.

setOrder

public void setOrder (final int order)

Method setOrder.

Parameters:
final int order

getPauseTime

public double getPauseTime ()

Method getPauseTime.

setPauseTime

public void setPauseTime (final double pauseTime)

Method setPauseTime.

Parameters:
final double pauseTime

getObservationAngle

public float getObservationAngle ()

Method getObservationAngle.

onReplaced

public void onReplaced ()

Method onReplaced.

setObservationAngle

public void setObservationAngle (final float observationAngle)

Method setObservationAngle.

Parameters:
final float observationAngle

getWaypointPosition

public Vector3d getWaypointPosition (@Nonnull final ComponentAccessor componentAccessor)

Method getWaypointPosition.

Parameters:
@Nonnull final ComponentAccessor componentAccessor

getWaypointRotation

public Vector3f getWaypointRotation (@Nonnull final ComponentAccessor componentAccessor)

Method getWaypointRotation.

Parameters:
@Nonnull final ComponentAccessor componentAccessor

toString

public String toString ()

Method toString.