Class BattleTestHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.test.BattleTestHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
atMost
(double value, int max) void
autoTurn
(BattleController controller) void
autoTurn
(BattleController controller, Runnable endOfTurn) createDefaultPokemon
(RegistryValue<Species> species) createParticipant
(int numControlled, Pokemon... pokemon) createParticipant
(Pokemon... pokemon) createSingleBattle
(BattleParticipant teamOne, BattleParticipant teamTwo) boolean
inRange
(double value, int min, int max) setupDoubleBattleBuilder
(BattleParticipant teamOne, BattleParticipant teamTwo) setupDoubleBattleBuilder
(BattleParticipant teamOneFirst, BattleParticipant teamOneSecond, BattleParticipant teamTwoFirst, BattleParticipant teamTwoSecond) setupSingleBattleBuilder
(BattleParticipant teamOne, BattleParticipant teamTwo) setupSingleBattleBuilderWithLevelCap
(BattleParticipant teamOne, BattleParticipant teamTwo, int levelCap) setupSingleBattleBuilderWithoutSwitchIns
(BattleParticipant teamOne, BattleParticipant teamTwo) setupTripleBattleBuilder
(BattleParticipant teamOne, BattleParticipant teamTwo) void
skipTicks
(BattleController controller, int ticks)
-
Constructor Details
-
BattleTestHelper
protected BattleTestHelper()
-
-
Method Details
-
createParticipant
-
createParticipant
-
createSingleBattle
public CompletableFuture<BattleController> createSingleBattle(BattleParticipant teamOne, BattleParticipant teamTwo) -
setupSingleBattleBuilder
-
setupSingleBattleBuilderWithLevelCap
public BattleBuilder setupSingleBattleBuilderWithLevelCap(BattleParticipant teamOne, BattleParticipant teamTwo, int levelCap) -
setupSingleBattleBuilderWithoutSwitchIns
public BattleBuilder setupSingleBattleBuilderWithoutSwitchIns(BattleParticipant teamOne, BattleParticipant teamTwo) -
setupDoubleBattleBuilder
-
setupDoubleBattleBuilder
public BattleBuilder setupDoubleBattleBuilder(BattleParticipant teamOneFirst, BattleParticipant teamOneSecond, BattleParticipant teamTwoFirst, BattleParticipant teamTwoSecond) -
setupTripleBattleBuilder
-
skipTicks
-
inRange
public boolean inRange(double value, int min, int max) -
atMost
public boolean atMost(double value, int max) -
createDefaultPokemon
-
createMagikarp
-
autoTurn
-
autoTurn
-