MagicAttackResolver

@FunctionalInterface()
public interface MagicAttackResolver

Optional progression adapter for FMM-owned magic attacks.

The resolver calculates the final damage and invokes the supplied one-shot application. It must not damage the target directly. FMM remains the sole input, projectile, collision and damage-application owner.

Functions

Link copied to clipboard
public boolean canAttack(Player player, ItemStack weapon, MagicAttackKind attackKind)
Called once before casting, while the held item is still available for item policy.
Link copied to clipboard
public Map<String, Double> capture(Player player, ItemStack weapon, MagicAttackKind attackKind)
Provider-owned scalar combat facts captured once before a cast commits.
Link copied to clipboard
public static int defaultTargetPriority(LivingEntity target)
Plugin-neutral tier classification shared by the engine and integrations.
Link copied to clipboard
public boolean isTargetEligible(MagicTargetRequest request)
Optionally narrows FMM's generic living-target rules for an integrating combat system.
Link copied to clipboard
public abstract void resolve(MagicAttackRequest request, MagicDamageApplication application)
Link copied to clipboard
public int targetPriority(MagicTargetRequest request)
Optionally ranks eligible living targets for aim assist.