Class PlayerDeathEvent
java.lang.Object
net.minestom.server.event.player.PlayerDeathEvent
- All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent
Called when a player die in
Player.kill().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the message sent to chat.Gets the text displayed in the death screen.Gets the player.voidsetChatMessage(@Nullable Component chatMessage) Changes the text sent in chatvoidsetDeathText(@Nullable Component deathText) Changes the text displayed in the death screen.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInstanceEvent
getInstanceMethods inherited from interface PlayerEvent
getEntity
-
Constructor Details
-
PlayerDeathEvent
-
-
Method Details
-
getDeathText
-
setDeathText
-
getChatMessage
-
setChatMessage
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-