Class BuilderSensorMany

All Implemented Interfaces:
NamedSchema, SchemaConvertable<Void>, Builder<Sensor>, BuilderContext
Direct Known Subclasses:
BuilderSensorAnd, BuilderSensorOr

public abstract class BuilderSensorMany extends BuilderSensorBase
  • Constructor Details

    • BuilderSensorMany

      public BuilderSensorMany()
  • Method Details

    • registerTags

      public void registerTags(@Nonnull Set<String> tags)
      Overrides:
      registerTags in class BuilderBase<Sensor>
    • readConfig

      @Nonnull public Builder<Sensor> readConfig(@Nonnull com.google.gson.JsonElement data)
      Overrides:
      readConfig in class BuilderBase<Sensor>
    • 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<Sensor>
      Overrides:
      validate in class BuilderSensorBase
      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
    • getAutoUnlockedTargetSlot

      public int getAutoUnlockedTargetSlot(@Nonnull BuilderSupport support)