Class SetBattleAIEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.SetBattleAIEvent
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 Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.core.Holder<BattleAI> protected final BattleParticipantFields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController -
Constructor Summary
ConstructorsConstructorDescriptionSetBattleAIEvent(BattleController bc, BattleParticipant participant, net.minecraft.core.Holder<BattleAI> ai) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
getBattleController
-
Field Details
-
participant
-
ai
-
-
Constructor Details
-
SetBattleAIEvent
public SetBattleAIEvent(BattleController bc, BattleParticipant participant, net.minecraft.core.Holder<BattleAI> ai)
-
-
Method Details
-
getParticipant
-
getAI
-
setAI
-