ConsoleIcon support Windows 10 on new Console & OnLatencyUpdate Event (#1044)

* new ConsoleIcon support

* Update ChatBot.cs

+ OnLatencyUpdate

* Update McTcpClient.cs

+ OnLatencyUpdate

* Update Protocol18.cs

+ OnLatencyUpdate

* Update IMinecraftComHandler.cs

+ OnLatencyUpdate

* Update Protocol18.cs

+ BugFix

* Update ConsoleIcon.cs
This commit is contained in:
Рома Данилов 2020-06-07 16:16:49 +05:00 committed by GitHub
parent 85f5117833
commit b800bbcb37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 4 deletions

View file

@ -1635,7 +1635,23 @@ namespace MinecraftClient
foreach (ChatBot bot in bots.ToArray())
bot.OnExplosion(location, strength, affectedBlocks);
}
/// <summary>
/// Called when Latency is updated
/// </summary>
/// <param name="uuid">player uuid</param>
/// <param name="latency">Latency</param>
public void OnLatencyUpdate(Guid uuid, int latency)
{
string playerName = null;
if (onlinePlayers.ContainsKey(uuid))
{
playerName = onlinePlayers[uuid];
foreach (ChatBot bot in bots.ToArray())
bot.OnLatencyUpdate(playerName, uuid, latency);
}
}
/// <summary>
/// Called when Experience bar is updated
/// </summary>