Class BuilderMotionBase<T extends Motion>

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

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

    • BuilderMotionBase

      public BuilderMotionBase()
  • Method Details

    • canRequireFeature

      public boolean canRequireFeature()
      Specified by:
      canRequireFeature in interface Builder<T extends Motion>
      Overrides:
      canRequireFeature in class BuilderBase<T extends Motion>
    • readCommonConfig

      public Builder<T> readCommonConfig(com.google.gson.JsonElement data)
      Overrides:
      readCommonConfig in class BuilderBase<T extends Motion>
    • isEnabled

      public final boolean isEnabled(ExecutionContext context)
    • validate

      public boolean validate(String configName, @Nonnull NPCLoadTimeValidationHelper validationHelper, 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 BuilderBase<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