mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Added Player Killed event (Combat and CombatDeath packets).
This commit is contained in:
parent
01eee22921
commit
80e227c3a7
5 changed files with 65 additions and 1 deletions
|
|
@ -417,7 +417,15 @@ namespace MinecraftClient
|
|||
public virtual void OnPlayerLeave(Guid uuid, string? name) { }
|
||||
|
||||
/// <summary>
|
||||
/// Called when the player deaths
|
||||
/// This method is called when a player has been killed by another entity
|
||||
/// </summary>
|
||||
/// <param name="killerEntity">Killer's entity</param>
|
||||
/// <param name="chatMessage">message sent in chat when player is killed</param>
|
||||
public virtual void OnKilled(Entity killerEntity, string chatMessage) { }
|
||||
|
||||
/// <summary>
|
||||
/// Called when the player dies
|
||||
/// For getting the info about the player/entity who killed the player use OnPlayerKilled
|
||||
/// </summary>
|
||||
public virtual void OnDeath() { }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue