Class PatrolPathMarkerEntity
java.lang.Object
com.hypixel.hytale.server.core.entity.Entity
com.hypixel.hytale.builtin.path.entities.PatrolPathMarkerEntity
- All Implemented Interfaces:
IPrefabPathWaypoint,Component<EntityStore>,IPathWaypoint,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.entity.Entity
Entity.DefaultAnimations -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<PatrolPathMarkerEntity> private floatprivate intprivate IPrefabPathprivate UUIDprivate Stringprivate doubleprivate shortFields inherited from class com.hypixel.hytale.server.core.entity.Entity
DISPLAY_NAME, legacyDisplayName, legacyUuid, LOGGER, MODEL, networkId, reference, removedBy, UNASSIGNED_ID, UUID, VERSION, wasRemoved, worldFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateDisplayName(int worldgenId, PatrolPathMarkerEntity patrolPathMarkerEntity) floatintgetOrder()doubleshortgetWaypointPosition(ComponentAccessor<EntityStore> componentAccessor) getWaypointRotation(ComponentAccessor<EntityStore> componentAccessor) voidinitialise(UUID id, String pathName, int index, double pauseTime, float observationAngle, int worldGenId, ComponentAccessor<EntityStore> componentAccessor) booleanbooleanisHiddenFromLivingEntity(Ref<EntityStore> ref, Ref<EntityStore> targetRef, ComponentAccessor<EntityStore> componentAccessor) voidvoidsetObservationAngle(float observationAngle) voidsetOrder(int order) voidsetParentPath(IPrefabPath parentPath) voidvoidsetPathName(String pathName) voidsetPauseTime(double pauseTime) toString()Methods inherited from class com.hypixel.hytale.server.core.entity.Entity
clearReference, clone, equals, getLegacyDisplayName, getNetworkId, getReference, getTransformComponent, getUuid, getWorld, hashCode, loadIntoWorld, markNeedsSave, moveTo, remove, setLegacyUUID, setReference, setTransformComponent, toHolder, unloadFromWorld, wasRemovedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
pathId
-
pathName
-
order
private int order -
pauseTime
private double pauseTime -
observationAngle
private float observationAngle -
tempPathLength
private short tempPathLength -
parentPath
-
-
Constructor Details
-
PatrolPathMarkerEntity
public PatrolPathMarkerEntity() -
PatrolPathMarkerEntity
-
-
Method Details
-
getComponentType
-
setParentPath
-
getPathId
-
setPathId
-
getPathName
-
setPathName
-
generateDisplayName
@Nonnull public static String generateDisplayName(int worldgenId, PatrolPathMarkerEntity patrolPathMarkerEntity) -
getTempPathLength
public short getTempPathLength() -
initialise
public void initialise(@Nonnull UUID id, @Nonnull String pathName, int index, double pauseTime, float observationAngle, int worldGenId, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
initialisein interfaceIPrefabPathWaypoint
-
getParentPath
- Specified by:
getParentPathin interfaceIPrefabPathWaypoint
-
isCollidable
public boolean isCollidable()- Overrides:
isCollidablein classEntity
-
isHiddenFromLivingEntity
public boolean isHiddenFromLivingEntity(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> targetRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
isHiddenFromLivingEntityin classEntity
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceIPathWaypoint
-
setOrder
public void setOrder(int order) -
getPauseTime
public double getPauseTime()- Specified by:
getPauseTimein interfaceIPathWaypoint
-
setPauseTime
public void setPauseTime(double pauseTime) -
getObservationAngle
public float getObservationAngle()- Specified by:
getObservationAnglein interfaceIPathWaypoint
-
onReplaced
public void onReplaced()- Specified by:
onReplacedin interfaceIPrefabPathWaypoint
-
setObservationAngle
public void setObservationAngle(float observationAngle) -
getWaypointPosition
@Nonnull public Vector3d getWaypointPosition(@Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
getWaypointPositionin interfaceIPathWaypoint
-
getWaypointRotation
@Nonnull public Vector3f getWaypointRotation(@Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
getWaypointRotationin interfaceIPathWaypoint
-
toString
-