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

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.server.level.ServerPlayer
    The player losing to the NPC
    The NPC they lost to
  • Constructor Summary

    Constructors
    Constructor
    Description
    LostToTrainerEvent(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • player

      public final net.minecraft.server.level.ServerPlayer player
      The player losing to the NPC
    • trainer

      public final NPCTrainer trainer
      The NPC they lost to
  • Constructor Details

    • LostToTrainerEvent

      public LostToTrainerEvent(net.minecraft.server.level.ServerPlayer player, NPCTrainer trainer)