Class BeatTrainerEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.BeatTrainerEvent
public class BeatTrainerEvent
extends net.minecraftforge.eventbus.api.Event
Fired when a player beats an NPC trainer.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionfinal net.minecraft.server.level.ServerPlayer
The player who beat the trainerfinal NPCTrainer
The defeated trainer -
Constructor Summary
ConstructorDescriptionBeatTrainerEvent
(net.minecraft.server.level.ServerPlayer player, NPCTrainer trainer) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
public final net.minecraft.server.level.ServerPlayer playerThe player who beat the trainer -
trainer
The defeated trainer
-
-
Constructor Details
-
BeatTrainerEvent
-