Interface EntityCombat.Prediction<I>

Type Parameters:
I - plugin-defined input for each run
Enclosing class:
EntityCombat
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EntityCombat.Prediction<I>
Predicts entity state for a candidate player position and tick.
  • Method Details

    • predict

      SimulationEntity predict(I input, SimulationEntity entity, Rect target, int tick, SimulationCollision collision)
      Returns the predicted entity state.
      Parameters:
      input - plugin-defined input for this run
      entity - initial entity state
      target - candidate player area
      tick - simulated tick when the candidate is reached
      collision - entity collision tracker for this prediction batch