Interface BattleAnimationTime
- All Known Implementing Classes:
MarkerBattleAnimationTime,NoBattleAnimationTime,TickBattleAnimationTime
public interface BattleAnimationTime
Resolves a timeline time value from ticks or named markers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BattleAnimationTime> static final BattleAnimationTimestatic final BattleAnimationTime -
Method Summary
Modifier and TypeMethodDescriptionstatic BattleAnimationTimeCreates a marker-based time.intResolves this time against a marker map.static BattleAnimationTimetick(int tick) Creates a fixed tick time.
-
Field Details
-
ZERO
-
NONE
-
CODEC
-
-
Method Details
-
tick
Creates a fixed tick time.- Parameters:
tick- the tick value- Returns:
- the fixed tick time
-
marker
Creates a marker-based time.- Parameters:
marker- the marker name to resolve- Returns:
- the marker time
-
resolve
Resolves this time against a marker map.- Parameters:
markers- the available timeline markers- Returns:
- the resolved tick, or
-1for no explicit time
-