Interface SpellFieldVisualEffect

All Superinterfaces:
SpellFieldEffect
All Known Implementing Classes:
AmbientFieldVisualEffect, VectorFieldVisualEffect

public interface SpellFieldVisualEffect extends SpellFieldEffect
Contract for a SpellFieldEffect that broadcasts particle or visual effects across the evaluated geometry of a spell field.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(net.minecraft.server.level.ServerLevel level, int enchantmentLevel, net.minecraft.world.item.enchantment.EnchantedItemInUse context, net.minecraft.world.entity.Entity target, net.minecraft.world.phys.Vec3 epicenter, List<GlobalVolume> volumes, List<FieldAxis> activeAxis)
    Executes the visual/particle generation logic across the evaluated volumes.

    Methods inherited from interface SpellFieldEffect

    codec
  • Method Details

    • apply

      void apply(net.minecraft.server.level.ServerLevel level, int enchantmentLevel, net.minecraft.world.item.enchantment.EnchantedItemInUse context, net.minecraft.world.entity.Entity target, net.minecraft.world.phys.Vec3 epicenter, List<GlobalVolume> volumes, List<FieldAxis> activeAxis)
      Executes the visual/particle generation logic across the evaluated volumes.
      Parameters:
      level - The executing server level.
      enchantmentLevel - The active level of the spell field enchantment.
      context - The item usage context triggering the spell field.
      target - The anchor entity or focal point of the spell field.
      epicenter - The exact spatial origin vector of the spell field.
      volumes - The list of evaluated world-space GlobalVolumes defining the spell field geometry.
      activeAxis - The list of active directional FieldAxis instances collected from sibling effects.