Contents
Package com.hypixel.hytale.builtin.abilities.trigger
package com.hypixel.hytale.builtin.abilities.trigger
-
ClassDescriptionThe shared body of the ability charge systems: finds the armed
AbilityCharges.Entryrecords whose buff is still active and whose ability allows the held item, then spends a charge on each and runs its per-activation interaction server-simulated on the carrier.The OnHit trigger: an entity carryingAbilityChargeslands a weapon attack.The melee half of the OnPrimaryActivation trigger: a Primary chain starting with a melee weapon in hand is an attack, released the moment it starts.The ranged half of the OnPrimaryActivation trigger: a weapon's Primary chain launching its projectile (a bow or crossbow shot leaving) is the attack being released.The buffs granted by ability casts that run an authored interaction each time their trigger fires (seeAbilityChargeTrigger; today both triggers are weapon attacks) until their charges or the buff run out.One granted buff: its effect, what spends a charge, and the interaction each charge runs.When aAbilityChargesbuff spends a charge and runs its per-activation interaction.The authored definition of an ability projectile, shared by every interaction that launches one: the codec keys are declared once here (AbilityProjectileConfig.appendCodec(BuilderCodec.BuilderBase, Function)) and appear flat on the authoring node, andAbilityProjectileConfig.resolve(ImpactModifiers)folds rune attributes into aAbilityProjectileLaunchDataforAbilityProjectileLauncher.Everything one ability projectile launch needs, resolved at cast time (rune attributes already folded into the values).Launches an ability projectile: a server-only projectile fired along the caster's look (optionally flattened for ground waves).Split state of an ability projectile whose cast carries a Fork or Ricochet rune.Makes an ability projectile emit a particle burst at its position on a fixed cadence while it travels, painting the danger zone on the ground (e.g. a crack marching with a ground wave).Emits the particle bursts ofAbilityProjectileTrailcarriers: one burst at the projectile's current position per cadence.ReelsPulledByAbilitycarriers toward their caster: every tick the direction is re-aimed into a reel velocity.Marks an entity being reeled toward a caster (e.g. by a chain ability).Applies the on-hit effects support runes injected into an ability (e.g. a burn rune) to every entity that ability damages.