Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getEventStartSeconds()
- getInvasionPortalSpacing()
- getActiveWeatherId(VoidEventStage)
- getActiveMusicIndex(VoidEventStage)
- getActiveInvasionPortals(VoidEventStage)
- getMaxPortalCount(VoidEventStage)
- findLatestStage(double)
- forEachStage(VoidEventStage, VoidEventStage, T1, T2, TriConsumer)
- forEachStage(VoidEventStage, VoidEventStage, T1, T2, T3, QuadConsumer)
Class VoidEventConfig
java.lang.Object
com.hypixel.hytale.builtin.portals.components.voidevent.config.VoidEventConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<VoidEventConfig> static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindLatestStage(double elapsedSeconds) <T1,T2> void forEachStage(VoidEventStage begin, VoidEventStage end, T1 t1, T2 t2, TriConsumer<T1, T2, VoidEventStage> consumer) Iterate each stage between the given begin and end stages.<T1,T2, T3> void forEachStage(VoidEventStage begin, VoidEventStage end, T1 t1, T2 t2, T3 t3, QuadConsumer<T1, T2, T3, VoidEventStage> consumer) Iterate each stage between the given begin and end stages.getActiveInvasionPortals(VoidEventStage activeStage) The invasion-portal config in effect while the given stage is active: the last one a stage at or before it defines.intgetActiveMusicIndex(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".getActiveWeatherId(VoidEventStage activeStage) The forced weather in effect while the given stage is active: the last weather a stage at or before it defines.intintintgetMaxPortalCount(VoidEventStage activeStage) The max number of invasion-portals that may be spawned at the current active stage.
-
Field Details
-
MAX_PORTAL_COUNT
public static final int MAX_PORTAL_COUNT- See Also:
-
DEFAULT_PORTAL_COUNT
public static final int DEFAULT_PORTAL_COUNT- See Also:
-
CODEC
-
-
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
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
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
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
The max number of invasion-portals that may be spawned at the current active stage. -
findLatestStage
-
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 eachVoidEventStagein the range.
-
forEachStage
public <T1,T2, void forEachStageT3> (@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 eachVoidEventStagein the range.
-