mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Implemented TabListHeaderAndFooter packet
This commit is contained in:
parent
cf6db27088
commit
782481816d
4 changed files with 30 additions and 0 deletions
|
|
@ -3438,6 +3438,16 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
DispatchBotEvent(bot => bot.OnUpdateScore(entityname, action, objectivename, value));
|
DispatchBotEvent(bot => bot.OnUpdateScore(entityname, action, objectivename, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Called when the client received the Tab Header and Footer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="header">Header</param>
|
||||||
|
/// <param name="footer">Footer</param>
|
||||||
|
public void OnTabListHeaderAndFooter(string header, string footer)
|
||||||
|
{
|
||||||
|
DispatchBotEvent(bot => bot.OnTabListHeaderAndFooter(header, footer));
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called when the health of an entity changed
|
/// Called when the health of an entity changed
|
||||||
|
|
|
||||||
|
|
@ -2374,6 +2374,12 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
|
|
||||||
break;*/
|
break;*/
|
||||||
|
|
||||||
|
case PacketTypesIn.PlayerListHeaderAndFooter:
|
||||||
|
var header = dataTypes.ReadNextString(packetData);
|
||||||
|
var footer = dataTypes.ReadNextString(packetData);
|
||||||
|
handler.OnTabListHeaderAndFooter(header, footer);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false; //Ignored packet
|
return false; //Ignored packet
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -447,6 +447,13 @@ namespace MinecraftClient.Protocol
|
||||||
/// <param name="value">he score to be displayed next to the entry. Only sent when Action does not equal 1.</param>
|
/// <param name="value">he score to be displayed next to the entry. Only sent when Action does not equal 1.</param>
|
||||||
void OnUpdateScore(string entityname, int action, string objectivename, int value);
|
void OnUpdateScore(string entityname, int action, string objectivename, int value);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Called when the client received the Tab Header and Footer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="header">Header</param>
|
||||||
|
/// <param name="footer">Footer</param>
|
||||||
|
void OnTabListHeaderAndFooter(string header, string footer);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called when tradeList is received from server
|
/// Called when tradeList is received from server
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -347,6 +347,13 @@ namespace MinecraftClient.Scripting
|
||||||
/// <param name="value">The score to be displayed next to the entry. Only sent when Action does not equal 1.</param>
|
/// <param name="value">The score to be displayed next to the entry. Only sent when Action does not equal 1.</param>
|
||||||
public virtual void OnUpdateScore(string entityname, int action, string objectivename, int value) { }
|
public virtual void OnUpdateScore(string entityname, int action, string objectivename, int value) { }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Called when the client received the Tab Header and Footer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="header">Header</param>
|
||||||
|
/// <param name="footer">Footer</param>
|
||||||
|
public virtual void OnTabListHeaderAndFooter(string header, string footer) { }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called when an inventory/container was updated by server
|
/// Called when an inventory/container was updated by server
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue