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

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.server.level.ServerPlayer
    The player who beat the trainer
    The defeated trainer
  • Constructor Summary

    Constructors
    Constructor
    Description
    BeatTrainerEvent(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 who beat the trainer
    • trainer

      public final NPCTrainer trainer
      The defeated trainer
  • Constructor Details

    • BeatTrainerEvent

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