mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Implemented effects support, as a command, chat notification and added in TUI mode
This commit is contained in:
parent
a7a3566756
commit
f6446b198d
15 changed files with 728 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue