Class ServerPlayerEvents
java.lang.Object
net.fabricmc.fabric.api.entity.event.v1.ServerPlayerEvents
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.static interfaceDeprecated.Use the more generalServerLivingEntityEvents.ALLOW_DEATHevent instead and check forinstanceof ServerPlayerEntity.static interfaceDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<ServerPlayerEvents.AfterRespawn>Deprecated.An event that is called after a player has been respawned.static final Event<ServerPlayerEvents.AllowDeath>Deprecated.Use the more generalServerLivingEntityEvents.ALLOW_DEATHevent instead and check forinstanceof ServerPlayerEntity.static final Event<ServerPlayerEvents.CopyFrom>Deprecated.An event that is called when the data from an old player is copied to a new player. -
Method Summary
-
Field Details
-
COPY_FROM
Deprecated.An event that is called when the data from an old player is copied to a new player.This event is typically called before a player is completely respawned. Mods may use this event to copy old player data to a new player.
-
AFTER_RESPAWN
Deprecated.An event that is called after a player has been respawned.Mods may use this event for reference clean up on the old player.
-
ALLOW_DEATH
Deprecated.Use the more generalServerLivingEntityEvents.ALLOW_DEATHevent instead and check forinstanceof ServerPlayerEntity.An event that is called when a player takes fatal damage.
-
ServerPlayerEntityCopyCallbackandEntityReviveEventsinstead.