Latency improve (#1244)

* Update ChatBot.cs
* Update McClient.cs
* Update ChatBot.cs
* Update ChatBot.cs
* Update McClient.cs
This commit is contained in:
Рома Данилов 2020-08-29 17:46:04 +05:00 committed by GitHub
parent 02e294e3e8
commit de9dcd6d77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 2 deletions

View file

@ -230,6 +230,15 @@ namespace MinecraftClient
/// <param name="latency">Latency.</param>
public virtual void OnLatencyUpdate(string playername, Guid uuid, int latency) { }
/// <summary>
/// Called when the Latency has been updated for a player
/// </summary>
/// <param name="entity">Entity</param>
/// <param name="playername">Player Name</param>
/// <param name="uuid">Player UUID</param>
/// <param name="latency">Latency.</param>
public virtual void OnLatencyUpdate(Entity entity, string playername, Guid uuid, int latency) { }
/// <summary>
/// Called when a map was updated
/// </summary>
@ -876,7 +885,7 @@ namespace MinecraftClient
}
/// <summary>
/// Get all Entityes
/// Get all Entities
/// </summary>
/// <returns>All Entities</returns>
protected Dictionary<int, Entity> GetEntities()
@ -884,6 +893,15 @@ namespace MinecraftClient
return Handler.GetEntities();
}
/// <summary>
/// Get all players Latency
/// </summary>
/// <returns>All players latency</returns>
protected Dictionary<string, int> GetPlayersLatency()
{
return Handler.GetPlayersLatency();
}
/// <summary>
/// Get the current location of the player (Feets location)
/// </summary>