Class IntervalCondition.Config

java.lang.Object
com.hypixel.hytale.builtin.adventure.worldevents.condition.IntervalCondition.Config
All Implemented Interfaces:
EventCondition.Config
Enclosing class:
IntervalCondition

public static class IntervalCondition.Config extends Object implements EventCondition.Config
  • Field Details

  • Constructor Details

    • Config

      public Config()
  • Method Details

    • showOnMap

      public boolean showOnMap()
    • getMapIntervalKey

      @Nullable public String getMapIntervalKey()
    • nextRandomSeconds

      public long nextRandomSeconds()
    • create

      @Nonnull public EventCondition create()
      Description copied from interface: EventCondition.Config
      Creates a new live condition instance from this config. Called once per stage start.
      Specified by:
      create in interface EventCondition.Config
      Returns:
      a fresh, unstarted condition ready to be submitted to the ConditionManager
    • validate

      public void validate(@Nonnull Validator validator)
      Description copied from interface: EventCondition.Config
      Called at asset-load time so the config can register any ContextKey values it references and perform any other validation of the configuration.
      Specified by:
      validate in interface EventCondition.Config
      Parameters:
      validator - the validator to register key references with