Class BuilderMotionControllerBase

java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderBase<com.hypixel.hytale.server.npc.movement.controllers.MotionController>
com.hypixel.hytale.server.npc.asset.builder.BuilderBaseWithType<com.hypixel.hytale.server.npc.movement.controllers.MotionController>
com.hypixel.hytale.server.npc.movement.controllers.builders.BuilderMotionControllerBase
All Implemented Interfaces:
NamedSchema, SchemaConvertable<Void>, Builder<com.hypixel.hytale.server.npc.movement.controllers.MotionController>, BuilderContext, ISpawnable
Direct Known Subclasses:
BuilderMotionControllerDive, BuilderMotionControllerFly, BuilderMotionControllerWalk

public abstract class BuilderMotionControllerBase extends BuilderBaseWithType<com.hypixel.hytale.server.npc.movement.controllers.MotionController>
  • Field Details

    • epsilonAngle

      protected float epsilonAngle
    • epsilonSpeed

      protected double epsilonSpeed
    • forceVelocityDamping

      protected double forceVelocityDamping
    • maxHorizontalSpeed

      protected final DoubleHolder maxHorizontalSpeed
    • fastHorizontalThreshold

      protected final DoubleHolder fastHorizontalThreshold
    • fastHorizontalThresholdRange

      protected double fastHorizontalThresholdRange
    • maxHeadRotationSpeed

      protected final FloatHolder maxHeadRotationSpeed
  • Constructor Details

    • BuilderMotionControllerBase

      public BuilderMotionControllerBase()
  • Method Details

    • readCommonConfig

      @Nonnull public Builder<com.hypixel.hytale.server.npc.movement.controllers.MotionController> readCommonConfig(@Nonnull com.google.gson.JsonElement data)
      Overrides:
      readCommonConfig in class BuilderBaseWithType<com.hypixel.hytale.server.npc.movement.controllers.MotionController>
    • isEnabled

      public final boolean isEnabled(ExecutionContext context)
    • getIdentifier

      @Nonnull public String getIdentifier()
    • validate

      public boolean validate(String configName, @Nonnull NPCLoadTimeValidationHelper validationHelper, ExecutionContext context, Scope globalScope, @Nonnull List<String> errors)
      Specified by:
      validate in interface Builder<com.hypixel.hytale.server.npc.movement.controllers.MotionController>
      Overrides:
      validate in class BuilderBase<com.hypixel.hytale.server.npc.movement.controllers.MotionController>
    • getEpsilonAngle

      public float getEpsilonAngle()
    • getEpsilonSpeed

      public double getEpsilonSpeed()
    • getForceVelocityDamping

      public double getForceVelocityDamping()
    • getMaxHorizontalSpeed

      public double getMaxHorizontalSpeed(@Nonnull BuilderSupport builderSupport)
    • getMaxHeadRotationSpeed

      public float getMaxHeadRotationSpeed(@Nonnull BuilderSupport support)
    • getFastHorizontalThreshold

      public double getFastHorizontalThreshold(@Nonnull BuilderSupport builderSupport)
    • getFastHorizontalThresholdRange

      public double getFastHorizontalThresholdRange()
    • getClassType

      public abstract Class<? extends com.hypixel.hytale.server.npc.movement.controllers.MotionController> getClassType()