Interface SpellFieldVolumeEffect
- All Superinterfaces:
SpellFieldEffect
- All Known Implementing Classes:
ExplodeEffect,LightningStrikeEffect,PlaySoundVolumeEffect,SummonEntityEffect,SurfaceHazardEffect
Contract for a
SpellFieldEffect evaluated once globally across the composite list of
GlobalVolumes rather than per-entity or per-block.-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(net.minecraft.server.level.ServerLevel level, int enchantmentLevel, net.minecraft.world.item.enchantment.EnchantedItemInUse context, net.minecraft.world.entity.Entity spatialReference, net.minecraft.world.phys.Vec3 epicenter, List<GlobalVolume> volumes) Executes the volume-wide effect logic.Methods inherited from interface johnsmith.enchantmentcore.api.enchantment.spellfield.effect.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 spatialReference, net.minecraft.world.phys.Vec3 epicenter, List<GlobalVolume> volumes) Executes the volume-wide effect logic.- Parameters:
level- The executing server level.enchantmentLevel- The active level of the spell field enchantment.context- The item usage context triggering the spell field.spatialReference- 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-spaceGlobalVolumes defining the spell field geometry.
-