Class LostToTrainerEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.LostToTrainerEvent
public class LostToTrainerEvent
extends net.minecraftforge.eventbus.api.Event
Fires when a player loses to 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 losing to the NPCfinal NPCTrainer
The NPC they lost to -
Constructor Summary
ConstructorDescriptionLostToTrainerEvent
(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 losing to the NPC -
trainer
The NPC they lost to
-
-
Constructor Details
-
LostToTrainerEvent
-