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
If you wish to cancel this to stop them being respawned, you must cancel the
PartyFaintRespawnEvent.Pre
event.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
-
Constructor Summary
ModifierConstructorDescriptionprotected
PartyFaintRespawnEvent
(net.minecraft.server.level.ServerPlayer player) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-