Interface ISpellPartStatModifier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ISpellPartStatModifier
Interface to modify a stat of a spell part.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    modify(float base, float modified, ISpell spell, net.minecraft.world.entity.LivingEntity caster, @Nullable net.minecraft.world.phys.HitResult target, int componentIndex)
    Modifies the stat value.
  • Method Details

    • modify

      float modify(float base, float modified, ISpell spell, net.minecraft.world.entity.LivingEntity caster, @Nullable @Nullable net.minecraft.world.phys.HitResult target, int componentIndex)
      Modifies the stat value.
      Parameters:
      base - The base value being modified.
      modified - The value with all previous modifications.
      spell - The spell this is calculated for.
      caster - The entity casting the spell.
      target - The target of the spell.
      componentIndex -
      Returns:
      The modified value.