mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
85f5117833
commit
b800bbcb37
5 changed files with 65 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue