Class FutureBattleTask<E extends BattleEvent,A>

java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.FutureBattleTask<E,A>
Type Parameters:
E - The type of event to listen for
A - The type returned from the function

public class FutureBattleTask<E extends BattleEvent,A> extends Object
This class is used for storing the future tasks added to the battle When the event relating to the stored event class (E) is fired it will call the function and then CompletableFuture.complete(Object) with the returned object in that order Then it will remove the future battle task from the stored list of tasks