Implemented effects support, as a command, chat notification and added in TUI mode

This commit is contained in:
Anon 2026-03-27 15:47:27 +01:00
parent a7a3566756
commit f6446b198d
15 changed files with 728 additions and 15 deletions

View file

@ -99,6 +99,11 @@ namespace MinecraftClient.Mapping
/// </summary>
public Dictionary<int, Item> Equipment;
/// <summary>
/// Active status effects on this entity
/// </summary>
public Dictionary<Effects, EffectData> ActiveEffects { get; private set; }
/// <summary>
/// Create a new entity based on Entity ID, Entity Type and location
/// </summary>
@ -112,6 +117,7 @@ namespace MinecraftClient.Mapping
Location = location;
Health = 1.0f;
Equipment = new Dictionary<int, Item>();
ActiveEffects = new Dictionary<Effects, EffectData>();
Item = new Item(ItemType.Air, 0, null);
}
@ -128,6 +134,7 @@ namespace MinecraftClient.Mapping
Location = location;
Health = 1.0f;
Equipment = new Dictionary<int, Item>();
ActiveEffects = new Dictionary<Effects, EffectData>();
Item = new Item(ItemType.Air, 0, null);
Yaw = yaw * (1F / 256) * 360; // to angle in 360 degree
Pitch = pitch * (1F / 256) * 360;
@ -151,6 +158,7 @@ namespace MinecraftClient.Mapping
Name = name;
Health = 1.0f;
Equipment = new Dictionary<int, Item>();
ActiveEffects = new Dictionary<Effects, EffectData>();
Item = new Item(ItemType.Air, 0, null);
Yaw = yaw * (1F / 256) * 360; // to angle in 360 degree
Pitch = pitch * (1F / 256) * 360;