Skip to main content

IEnchantmentEffectApplication

An interface in Root.Township, Alta.Enchantments.

Runtime part of an EnchantmentEffect on one item. Run when the enchantment's trigger fires.

Properties​

MemberWhat it is
EnchantmentApplication EnchantmentApp { get; }The enchantment this effect belongs to.
EnchantmentEffect Settings { get; }The effect asset.

Methods​

MemberWhat it is
void Invoke(object data)Runs the effect with the trigger's data. The base version plays and syncs hit effects for a tool hit.
void SendMessage(Stream stream)Writes or reads the effect's sync data, such as the hit position.

Used in​

Members of other types that take, return or hold a IEnchantmentEffectApplication: