Class AttackWindow
java.lang.Object
dev.twilite.game.simulation.rules.action.AttackWindow
Factory methods for scoring nodes when an attack is ready.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBuilder for attack window scoring.static final recordBuilder for attack window scoring after the attack predicate has been set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I> AttackWindow.Builder<I> when(ToIntFunction<I> attackTick) Starts an attack window builder.
-
Constructor Details
-
AttackWindow
public AttackWindow()
-
-
Method Details
-
when
Starts an attack window builder.- Type Parameters:
I- plugin-defined input for each run- Parameters:
attackTick- function returning the relative tick when the player can attack
-