Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- build(BuilderSupport)
- getShortDescription()
- getLongDescription()
- getBuilderDescriptorState()
- readConfig(JsonElement)
- validate(String, NPCLoadTimeValidationHelper, ExecutionContext, Scope, List)
- getDesiredDistanceRange(BuilderSupport)
- getTargetDistanceFactor(BuilderSupport)
- getMoveThreshold(BuilderSupport)
- getRelativeForwardsSpeed(BuilderSupport)
- getRelativeBackwardsSpeed(BuilderSupport)
- getMoveTowardsSlowdownThreshold(BuilderSupport)
- getStrafingDurationRange(BuilderSupport)
- getStrafingFrequencyRange(BuilderSupport)
Class BuilderBodyMotionMaintainDistance
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderBase<BodyMotion>
com.hypixel.hytale.server.npc.corecomponents.builders.BuilderMotionBase<BodyMotion>
com.hypixel.hytale.server.npc.corecomponents.builders.BuilderBodyMotionBase
com.hypixel.hytale.server.npc.corecomponents.movement.builders.BuilderBodyMotionMaintainDistance
- All Implemented Interfaces:
NamedSchema, SchemaConvertable<Void>, Builder<BodyMotion>, BuilderContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(BuilderSupport builderSupport) double[]getDesiredDistanceRange(BuilderSupport support) doublegetMoveThreshold(BuilderSupport support) doubledoublegetRelativeBackwardsSpeed(BuilderSupport support) doublegetRelativeForwardsSpeed(BuilderSupport support) double[]getStrafingDurationRange(BuilderSupport support) double[]getStrafingFrequencyRange(BuilderSupport support) doublegetTargetDistanceFactor(BuilderSupport support) readConfig(com.google.gson.JsonElement data) booleanvalidate(String configName, NPCLoadTimeValidationHelper validationHelper, ExecutionContext context, Scope globalScope, List<String> errors) Iterates the builder tree and validates all present dynamic value holders based on the execution context and scope provided.Methods inherited from class BuilderBodyMotionBase
categoryMethods inherited from class BuilderMotionBase
canRequireFeature, isEnabled, readCommonConfigMethods inherited from class BuilderBase
cleanupParameters, createVector3d, createVector3d, enumSetToStrings, excludeFromRegularBuilding, expectBooleanElement, expectKey, expectObject, expectObject, expectStringArray, expectStringArray, expectStringElement, getArray, getAsset, getAsset, getAssetArray, getAssetArray, getBoolean, getBoolean, getBuilderManager, getBuilderParameters, getCodecObject, getDependencies, getDescriptionArray, getDescriptor, getDictionary, getDomain, getDouble, getDouble, getDoubleArray, getDoubleArray, getDoubleRange, getDoubleRange, getEnum, getEnum, getEnumSet, getEnumSet, getEvaluatorHelper, getFloat, getFloat, getInstructionContextHelper, getInt, getInt, getIntArray, getIntArray, getIntRange, getIntRange, getLabel, getObject, getOverride, getOverride, getOwner, getParameterBlock, getSchemaName, getStateMappingHelper, getString, getString, getStringArray, getStringArray, getTypeName, getVector3d, getVector3d, ignoreAttribute, readBoolean, readConfig, readString, readString, readStringArray, readStringArray, registerTags, requireArray, requireArray, requireAsset, requireAsset, requireAssetArray, requireAssetArray, requireBoolean, requireBoolean, requireCodecObject, requireDictionary, requireDouble, requireDouble, requireDoubleArray, requireDoubleArray, requireDoubleIfNotOverridden, requireDoubleRange, requireDoubleRange, requireEmbeddableArray, requireEnum, requireEnum, requireEnumArray, requireEnumSet, requireEnumSet, requireFloat, requireFloat, requireInt, requireInt, requireIntArray, requireIntArray, requireIntIfNotOverridden, requireIntRange, requireIntRange, requireObject, requireString, requireString, requireStringArray, requireStringArray, requireStringIfNotOverridden, requireTemporalArray, requireTemporalRange, requireVector3d, requireVector3d, setLabel, setTypeName, stringsToEnumArray, stringsToEnumSet, stringToEnum, toSchema, validateAsset, validateAssetList, validateReferencedProvidedFeaturesMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
addDynamicDependency, clearDynamicDependencies, getDynamicDependencies, hasDynamicDependencies, isDeprecated, isSpawnableMethods inherited from interface BuilderContext
getBreadCrumbs, getBreadCrumbs, getParent, setCurrentStateNameMethods inherited from interface SchemaConvertable
toSchema
-
Field Details
-
MIN_RANGE_PARAMETER
- See Also:
-
MAX_RANGE_PARAMETER
- See Also:
-
POSITIONING_ANGLE_PARAMETER
- See Also:
-
NO_POSITIONING
public static final double NO_POSITIONING- See Also:
-
DEFAULT_STRAFING_DURATION_RANGE
public static final double[] DEFAULT_STRAFING_DURATION_RANGE -
DEFAULT_STRAFING_FREQUENCY_RANGE
public static final double[] DEFAULT_STRAFING_FREQUENCY_RANGE
-
-
Constructor Details
-
BuilderBodyMotionMaintainDistance
public BuilderBodyMotionMaintainDistance()
-
-
Method Details
-
build
-
getShortDescription
- Specified by:
getShortDescriptionin classBuilderBase<BodyMotion>
-
getLongDescription
- Specified by:
getLongDescriptionin classBuilderBase<BodyMotion>
-
getBuilderDescriptorState
- Specified by:
getBuilderDescriptorStatein interfaceBuilder<BodyMotion>- Specified by:
getBuilderDescriptorStatein classBuilderBase<BodyMotion>
-
readConfig
@Nonnull public BuilderBodyMotionMaintainDistance readConfig(@Nonnull com.google.gson.JsonElement data) - Overrides:
readConfigin classBuilderBase<BodyMotion>
-
validate
public boolean validate(String configName, @Nonnull NPCLoadTimeValidationHelper validationHelper, ExecutionContext context, Scope globalScope, @Nonnull List<String> errors) Description copied from interface:BuilderIterates the builder tree and validates all present dynamic value holders based on the execution context and scope provided. Will also run an optional ILoadTimeValidationHelper- Specified by:
validatein interfaceBuilder<BodyMotion>- Overrides:
validatein classBuilderMotionBase<BodyMotion>- Parameters:
configName- the name of the parent file from which the execution context and scope are derivedvalidationHelper- an optional validation helper that will be run in certain contexts depending on implementationscontext- the execution context for resolving value holdersglobalScope- the scope for resolving value holderserrors- a list for storing any errors encountered- Returns:
- false if any errors were encountered during validation, true otherwise
-
getDesiredDistanceRange
-
getTargetDistanceFactor
-
getMoveThreshold
-
getRelativeForwardsSpeed
-
getRelativeBackwardsSpeed
-
getMoveTowardsSlowdownThreshold
-
getStrafingDurationRange
-
getStrafingFrequencyRange
-