Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- readCommonConfig(JsonElement)
- isEnabled(ExecutionContext)
- getIdentifier()
- validate(String, NPCLoadTimeValidationHelper, ExecutionContext, Scope, List)
- getEpsilonAngle()
- getEpsilonSpeed()
- getExternalVelocityDamping(BuilderSupport)
- getMaxHorizontalSpeed(BuilderSupport)
- getMaxHeadRotationSpeed(BuilderSupport)
- getFastHorizontalThreshold(BuilderSupport)
- getFastHorizontalThresholdRange(BuilderSupport)
- getClassType()
- getSupportedMovementModes()
Class BuilderMotionControllerBase
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderBase<MotionController>
com.hypixel.hytale.server.npc.asset.builder.BuilderBaseWithType<MotionController>
com.hypixel.hytale.server.npc.movement.controllers.builders.BuilderMotionControllerBase
- All Implemented Interfaces:
NamedSchema, SchemaConvertable<Void>, Builder<MotionController>, BuilderContext, ISpawnable
- Direct Known Subclasses:
BuilderMotionControllerDive, BuilderMotionControllerFly, BuilderMotionControllerWalk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Class<? extends MotionController> floatdoubledoublegetExternalVelocityDamping(BuilderSupport builderSupport) doublegetFastHorizontalThreshold(BuilderSupport builderSupport) doublegetFastHorizontalThresholdRange(BuilderSupport builderSupport) floatgetMaxHeadRotationSpeed(BuilderSupport support) doublegetMaxHorizontalSpeed(BuilderSupport builderSupport) abstract Set<MovementMode> Return the set ofMovementModes this motion controller supports.final booleanisEnabled(ExecutionContext context) readCommonConfig(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 BuilderBaseWithType
getTypeMethods inherited from class BuilderBase
canRequireFeature, cleanupParameters, createVector3d, createVector3d, enumSetToStrings, excludeFromRegularBuilding, expectBooleanElement, expectKey, expectObject, expectObject, expectStringArray, expectStringArray, expectStringElement, getArray, getAsset, getAsset, getAssetArray, getAssetArray, getBoolean, getBoolean, getBuilderDescriptorState, 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, getLongDescription, getObject, getOverride, getOverride, getOwner, getParameterBlock, getSchemaName, getShortDescription, getStateMappingHelper, getString, getString, getStringArray, getStringArray, getTypeName, getVector3d, getVector3d, ignoreAttribute, readBoolean, readConfig, 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, build, category, clearDynamicDependencies, getDynamicDependencies, hasDynamicDependencies, isDeprecated, isSpawnableMethods inherited from interface BuilderContext
getBreadCrumbs, getBreadCrumbs, getParent, setCurrentStateNameMethods inherited from interface ISpawnable
canSpawn, getMovementModes, getSpawnPlacement, requiresSpawnDropHeightCheckMethods inherited from interface SchemaConvertable
toSchema
-
Constructor Details
-
BuilderMotionControllerBase
public BuilderMotionControllerBase()
-
-
Method Details
-
readCommonConfig
@Nonnull public Builder<MotionController> readCommonConfig(@Nonnull com.google.gson.JsonElement data) - Overrides:
readCommonConfigin classBuilderBase<MotionController>
-
isEnabled
-
getIdentifier
- Returns:
- the unique identifier of the spawnable class type
-
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<MotionController>- Overrides:
validatein classBuilderBase<MotionController>- 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
-
getEpsilonAngle
public float getEpsilonAngle() -
getEpsilonSpeed
public double getEpsilonSpeed() -
getExternalVelocityDamping
-
getMaxHorizontalSpeed
-
getMaxHeadRotationSpeed
-
getFastHorizontalThreshold
-
getFastHorizontalThresholdRange
-
getClassType
-
getSupportedMovementModes
Return the set ofMovementModes this motion controller supports.Implementations must return the static constant defined on their corresponding
MotionControllersubclass (e.g.MotionControllerWalk.SUPPORTED_MOVEMENT_MODES). The returned set is immutable and context-independent.
-