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:
Рома Данилов 2020-08-26 21:58:45 +05:00 committed by GitHub
parent 9b8213eca5
commit 896cabb6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 129 additions and 24 deletions

View file

@ -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>();
}
}
}