mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Improve /entity, add entity equipment and item lore (#1238)
* Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Color fix * Update Entitycmd.cs * Update Entitycmd.cs * Entities list CustomName fix * Update Entity.cs * Update McClient.cs * Update Entity.cs * Update Entity.cs * Update Entitycmd.cs * Crash fixes * Update Entitycmd.cs * Update McClient.cs * Update Entitycmd.cs * Remove extra space * Space add * Update Item.cs * Update McClient.cs * Update Entitycmd.cs * Replace item slot if already set
This commit is contained in:
parent
9b8213eca5
commit
896cabb6ce
4 changed files with 129 additions and 24 deletions
|
|
@ -73,7 +73,12 @@ namespace MinecraftClient.Mapping
|
|||
/// Entity metadata
|
||||
/// </summary>
|
||||
public Dictionary<int, object> Metadata;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Entity equipment
|
||||
/// </summary>
|
||||
public Dictionary<int, Item> Equipment;
|
||||
|
||||
/// <summary>
|
||||
/// Create a new entity based on Entity ID, Entity Type and location
|
||||
/// </summary>
|
||||
|
|
@ -86,6 +91,7 @@ namespace MinecraftClient.Mapping
|
|||
this.Type = type;
|
||||
this.Location = location;
|
||||
this.Health = 1.0f;
|
||||
this.Equipment = new Dictionary<int, Item>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Create a new entity based on Entity ID, Entity Type, location, name and UUID
|
||||
|
|
@ -103,6 +109,7 @@ namespace MinecraftClient.Mapping
|
|||
this.UUID = uuid;
|
||||
this.Name = name;
|
||||
this.Health = 1.0f;
|
||||
this.Equipment = new Dictionary<int, Item>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue