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.
Predicts entity state for a candidate player position and tick.
-
Method Summary
Modifier and TypeMethodDescriptionpredict(I input, SimulationEntity entity, Rect target, int tick, SimulationCollision collision) Returns the predicted entity state.
-
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 runentity- initial entity statetarget- candidate player areatick- simulated tick when the candidate is reachedcollision- entity collision tracker for this prediction batch
-