Class BodyMotionWander
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.MotionBase
com.hypixel.hytale.server.npc.corecomponents.BodyMotionBase
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionWanderBase
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionWander
- All Implemented Interfaces:
BodyMotion,Motion,RoleStateChange,IAnnotatedComponent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionWanderBase
BodyMotionWanderBase.State -
Field Summary
Fields inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionWanderBase
angleOffset, debugSteer, desiredAltitudeWeight, desiredWalkDistance, DIRECTION_COUNT, directionIndex, insideConeCount, isAvoidingBlockDamage, isRelaxedMoveConstraints, LOGGER, maxDirection, maxDistanceAbove, maxDistanceBelow, maxHeadingChange, maxWalkTime, MIN_DISTANCE_SHRINK, MIN_DISTANCE_SHRINK_SCALE, minDirection, minHeadingChange, minMoveDistance, minWalkTime, preOrderedDirections, probeDirection, probeDY, probeMoveData, probePosition, relativeSpeed, relaxHeadingChange, seekTarget, SEGMENT_ANGLE, state, stopDistance, targetPosition, testsPerTick, walkDirections, walkDistance, walkDistances, walkHeading, walkTimeFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parent -
Constructor Summary
ConstructorsConstructorDescriptionBodyMotionWander(BuilderBodyMotionWander builder, BuilderSupport builderSupport) -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleconstrainMove(Ref<EntityStore> ref, Role role, Vector3d probePosition, Vector3d targetPosition, double moveDist, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionWanderBase
activate, computeHeightRange, computeSteering, deactivate, findBestDirection, motionControllerChanged, probeDirection, restartSearch, toAngleMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.instructions.BodyMotion
getSteeringMotionMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.Motion
preComputeSteeringMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, registerWithSupport, removed, spawned, teleported, unloaded
-
Constructor Details
-
BodyMotionWander
public BodyMotionWander(@Nonnull BuilderBodyMotionWander builder, @Nonnull BuilderSupport builderSupport)
-
-
Method Details
-
constrainMove
protected double constrainMove(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nonnull Vector3d probePosition, @Nonnull Vector3d targetPosition, double moveDist, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
constrainMovein classBodyMotionWanderBase
-