mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
New entity status packet event (#1506)
This commit is contained in:
parent
49603db657
commit
c15b071cad
4 changed files with 35 additions and 0 deletions
|
|
@ -1006,6 +1006,14 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
handler.OnEntityMetadata(EntityID, metadata);
|
||||
}
|
||||
break;
|
||||
case PacketTypesIn.EntityStatus:
|
||||
if (handler.GetEntityHandlingEnabled())
|
||||
{
|
||||
int entityId = dataTypes.ReadNextInt(packetData);
|
||||
byte status = dataTypes.ReadNextByte(packetData);
|
||||
handler.OnEntityStatus(entityId, status);
|
||||
}
|
||||
break;
|
||||
case PacketTypesIn.TimeUpdate:
|
||||
long WorldAge = dataTypes.ReadNextLong(packetData);
|
||||
long TimeOfday = dataTypes.ReadNextLong(packetData);
|
||||
|
|
|
|||
|
|
@ -209,6 +209,13 @@ namespace MinecraftClient.Protocol
|
|||
/// <param name="prop">Dictionary of properties</param>
|
||||
void OnEntityProperties(int entityID, Dictionary<string, Double> prop);
|
||||
|
||||
/// <summary>
|
||||
/// Called when the status of an entity have been changed
|
||||
/// </summary>
|
||||
/// <param name="entityID">Entity ID</param>
|
||||
/// <param name="status">Status ID</param>
|
||||
void OnEntityStatus(int entityID, byte status);
|
||||
|
||||
/// <summary>
|
||||
/// Called when the world age has been updated
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue