Interface DirectionalSpellFieldEffect

All Known Implementing Classes:
ImpulseEffect, OrbitEffect

public interface DirectionalSpellFieldEffect
Mixin-style capability interface implemented by SpellFieldEffects that exert directional forces along a FieldAxis (such as ImpulseEffect and OrbitEffect).

Collected during SpellFieldComponent.apply(ServerLevel, int, EnchantedItemInUse, Entity, Vec3) so that VectorFieldVisualEffect and the client-side SpellFieldDebugRenderer can automatically align particle velocities and debug vector arrows with the active kinetic field.

  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the active FieldAxis along which this effect operates.
  • Method Details

    • getActiveAxis

      Optional<FieldAxis> getActiveAxis()
      Retrieves the active FieldAxis along which this effect operates.
      Returns:
      An Optional containing the configured FieldAxis, or empty if no directional axis is active.