Class BuilderMotionSequence<T extends Motion>

java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderBase<T>
com.hypixel.hytale.server.npc.corecomponents.builders.BuilderMotionBase<T>
com.hypixel.hytale.server.npc.corecomponents.utility.builders.BuilderMotionSequence<T>
All Implemented Interfaces:
NamedSchema, SchemaConvertable<Void>, Builder<T>, BuilderContext
Direct Known Subclasses:
BuilderBodyMotionSequence, BuilderHeadMotionSequence

public abstract class BuilderMotionSequence<T extends Motion> extends BuilderMotionBase<T>
Created on 30/07/2020
  • Constructor Details

    • BuilderMotionSequence

      public BuilderMotionSequence()
  • Method Details

    • getShortDescription

      @Nonnull public String getShortDescription()
      Specified by:
      getShortDescription in class BuilderBase<T extends Motion>
    • getLongDescription

      @Nonnull public String getLongDescription()
      Specified by:
      getLongDescription in class BuilderBase<T extends Motion>
    • getBuilderDescriptorState

      @Nonnull public BuilderDescriptorState getBuilderDescriptorState()
      Specified by:
      getBuilderDescriptorState in interface Builder<T extends Motion>
      Specified by:
      getBuilderDescriptorState in class BuilderBase<T extends Motion>
    • readConfig

      @Nonnull public BuilderMotionSequence<T> readConfig(@Nonnull com.google.gson.JsonElement data)
      Overrides:
      readConfig in class BuilderBase<T extends Motion>
    • validate

      public boolean validate(String configName, @Nonnull NPCLoadTimeValidationHelper validationHelper, @Nonnull ExecutionContext context, Scope globalScope, @Nonnull List<String> errors)
      Description copied from interface: Builder
      Iterates 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:
      validate in interface Builder<T extends Motion>
      Overrides:
      validate in class BuilderMotionBase<T extends Motion>
      Parameters:
      configName - the name of the parent file from which the execution context and scope are derived
      validationHelper - an optional validation helper that will be run in certain contexts depending on implementations
      context - the execution context for resolving value holders
      globalScope - the scope for resolving value holders
      errors - a list for storing any errors encountered
      Returns:
      false if any errors were encountered during validation, true otherwise
    • isLooped

      public boolean isLooped()
    • isRestartOnActivate

      public boolean isRestartOnActivate()