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(net.minecraft.server.level.ServerLevel, int, net.minecraft.world.item.enchantment.EnchantedItemInUse, net.minecraft.world.entity.Entity, net.minecraft.world.phys.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.