Class CureEffects


public class CureEffects extends BuffSpell
  • Constructor Details

    • CureEffects

      public CureEffects()
  • Method Details

    • applyEffects

      protected boolean applyEffects(CastContext ctx, net.minecraft.world.entity.LivingEntity caster)
      Description copied from class: BuffSpell
      Applies the mob effects to the target. The duration and amplifier of the effects are calculated based on the spell properties and the potency and duration modifiers of the cast context.
      Overrides:
      applyEffects in class BuffSpell
      Parameters:
      ctx - the cast context of the spell, used to get the modifiers for duration and potency, as well as the world for applying the effects.
      caster - the target of the spell, the entity that is going to receive the mob effects. Normally the caster, but if the spell is cast by location, it will be the nearest entity to the selected location.
      Returns:
      true if the effects were applied, false if the target already had all the effects or if there was an error applying the effects.
    • properties

      @NotNull protected @NotNull SpellProperties properties()
      Description copied from class: Spell
      This method is where you should set the default properties for your spell when creating a new spell class. This method is called in the constructor of the Spell class, and the properties returned by this method are assigned to the spell's properties field.
      Overrides:
      properties in class BuffSpell
      Returns:
      A SpellProperties object with the default properties for your spell.