Class VoidEventConfig

java.lang.Object
com.hypixel.hytale.builtin.portals.components.voidevent.config.VoidEventConfig

public class VoidEventConfig extends Object
  • Field Details

  • Constructor Details

    • VoidEventConfig

      public VoidEventConfig()
  • Method Details

    • getEventStartSeconds

      public int getEventStartSeconds()
      Returns:
      the world-lifetime second at which the void event starts: the first stage's trigger time.
    • getInvasionPortalSpacing

      public int getInvasionPortalSpacing()
      Returns:
      the minimum distance to maintain between invasion portals.
    • getActiveWeatherId

      @Nullable public String getActiveWeatherId(@Nonnull VoidEventStage activeStage)
      The forced weather in effect while the given stage is active: the last weather a stage at or before it defines. Null when no stage so far defines one.
    • getActiveMusicIndex

      public int getActiveMusicIndex(@Nonnull VoidEventStage activeStage)
      The forced music in effect while the given stage is active: the last MusicContainer a stage at or before it defines, resolved to its index. 0 when none, meaning "no forced music".
    • getActiveInvasionPortals

      @Nullable public InvasionPortalConfig getActiveInvasionPortals(@Nonnull VoidEventStage activeStage)
      The invasion-portal config in effect while the given stage is active: the last one a stage at or before it defines. Null when no stage so far defines one.
    • getMaxPortalCount

      public int getMaxPortalCount(@Nonnull VoidEventStage activeStage)
      The max number of invasion-portals that may be spawned at the current active stage.
    • findLatestStage

      @Nullable public VoidEventStage findLatestStage(double elapsedSeconds)
    • forEachStage

      public <T1,T2> void forEachStage(@Nullable VoidEventStage begin, @Nonnull VoidEventStage end, @Nullable T1 t1, @Nullable T2 t2, @Nonnull TriConsumer<T1, T2, VoidEventStage> consumer)
      Iterate each stage between the given begin and end stages.
      Parameters:
      begin - The exclusive beginning stage to start iteration from. May be null.
      end - The inclusive end stage to iterate up to. Must not be null.
      t1 - T1 param of the consumer.
      t2 - T2 param of the consumer.
      consumer - Consumer that accepts T1, T2, and each VoidEventStage in the range.
    • forEachStage

      public <T1,T2,T3> void forEachStage(@Nullable VoidEventStage begin, @Nonnull VoidEventStage end, @Nullable T1 t1, @Nullable T2 t2, @Nullable T3 t3, @Nonnull QuadConsumer<T1, T2, T3, VoidEventStage> consumer)
      Iterate each stage between the given begin and end stages.
      Parameters:
      begin - The exclusive beginning stage to start iteration from. May be null.
      end - The inclusive end stage to iterate up to. Must not be null.
      t1 - T1 param of the consumer.
      t2 - T2 param of the consumer.
      t3 - T3 param of the consumer.
      consumer - Consumer that accepts T1, T2, T3 and each VoidEventStage in the range.