Added Player Killed event (Combat and CombatDeath packets).

This commit is contained in:
Milutinke 2022-10-26 20:53:09 +02:00
parent 01eee22921
commit 80e227c3a7
5 changed files with 65 additions and 1 deletions

View file

@ -159,6 +159,13 @@ namespace MinecraftClient.Protocol
/// <param name="uuid">UUID of the player</param>
void OnPlayerLeave(Guid uuid);
/// <summary>
/// This method is called when a player has been killed by another entity
/// </summary>
/// <param name="killerEntityId">Killer's entity if</param>
/// <param name="chatMessage">message sent in chat when player is killed</param>
void OnPlayerKilled(int killerEntityId, string chatMessage);
/// <summary>
/// Called when the server sets the new location for the player
/// </summary>