mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Implement tab list display name update
Packet 0x2D with action 0x03
This commit is contained in:
parent
461385d057
commit
b1d4f85b23
4 changed files with 31 additions and 7 deletions
|
|
@ -8,15 +8,14 @@ namespace MinecraftClient.Protocol
|
|||
/// <summary>
|
||||
/// Information about a player (player tab list item)
|
||||
/// </summary>
|
||||
public struct PlayerInfo : IComparable<PlayerInfo>
|
||||
public class PlayerInfo : IComparable<PlayerInfo>
|
||||
{
|
||||
private Guid _uuid;
|
||||
private string _name;
|
||||
private string _displayName;
|
||||
|
||||
public Guid UUID { get { return _uuid; } }
|
||||
public string Name { get { return _name; } }
|
||||
public string DisplayName { get { return _displayName; } }
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Create a new PlayerInfo structure
|
||||
|
|
@ -27,7 +26,7 @@ namespace MinecraftClient.Protocol
|
|||
{
|
||||
_uuid = uuid;
|
||||
_name = name;
|
||||
_displayName = name;
|
||||
DisplayName = name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -39,7 +38,7 @@ namespace MinecraftClient.Protocol
|
|||
public PlayerInfo(Guid uuid, string name, string displayName)
|
||||
: this(uuid, name)
|
||||
{
|
||||
_displayName = displayName;
|
||||
DisplayName = displayName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue