Class SetBattleAIEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.SetBattleAIEvent

public class SetBattleAIEvent extends BattleEvent
Event fired when the AI for a BattleParticipant is being set. The used BattleAIBase can be changed. It is worth noting that players get their AI set, even though it is not used unless simulateMode in the BattleController is true.
  • Field Details

  • Constructor Details

  • Method Details

    • getParticipant

      public BattleParticipant getParticipant()
    • getAI

      public net.minecraft.core.Holder<BattleAI> getAI()
    • setAI

      public void setAI(@NonNull net.minecraft.core.Holder<BattleAI> ai)