Class PartyFaintRespawnEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PartyFaintRespawnEvent
Direct Known Subclasses:
PartyFaintRespawnEvent.Post, PartyFaintRespawnEvent.Pre

public class PartyFaintRespawnEvent extends net.minecraftforge.eventbus.api.Event
These events are fired when the player's entire party gets wiped and they are about to be respawned at their last spawn point.
If you wish to cancel this to stop them being respawned, you must cancel the PartyFaintRespawnEvent.Pre event.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
    Cancel this event to stop the player being sent to the fainted screen and thus being respawned at their last spawn point.

    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
    protected net.minecraft.server.level.ServerPlayer
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PartyFaintRespawnEvent(net.minecraft.server.level.ServerPlayer player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.server.level.ServerPlayer
     

    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

      protected net.minecraft.server.level.ServerPlayer player
  • Constructor Details

    • PartyFaintRespawnEvent

      protected PartyFaintRespawnEvent(net.minecraft.server.level.ServerPlayer player)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
    • getParty

      public PartyStorage getParty()