Class BuffSpell

java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.BuffSpell
Direct Known Subclasses:
CureEffects, GreaterHeal, Heal, RemoveCurse, ReplenishHunger, Satiety

public class BuffSpell extends Spell
  • Field Details

    • effects

      protected final Supplier<net.minecraft.world.effect.MobEffect>[] effects
    • r

      protected final float r
    • g

      protected final float g
    • b

      protected final float b
    • potionSet

      protected Set<net.minecraft.world.effect.MobEffect> potionSet
    • particleCount

      protected float particleCount
  • Constructor Details

    • BuffSpell

      @SafeVarargs public BuffSpell(float r, float g, float b, Supplier<net.minecraft.world.effect.MobEffect>... effects)
  • Method Details

    • getStandardBonusAmplifier

      public static int getStandardBonusAmplifier(float potencyModifier)
    • getEffectDurationProperty

      public static SpellProperty<Integer> getEffectDurationProperty(net.minecraft.world.effect.MobEffect effect)
    • getEffectStrengthProperty

      public static SpellProperty<Integer> getEffectStrengthProperty(net.minecraft.world.effect.MobEffect effect)
    • particleCount

      public BuffSpell particleCount(int particleCount)
    • getPotionSet

      public Set<net.minecraft.world.effect.MobEffect> getPotionSet()
    • canCastByEntity

      public boolean canCastByEntity()
      Overrides:
      canCastByEntity in class Spell
    • canCastByLocation

      public boolean canCastByLocation()
      Overrides:
      canCastByLocation in class Spell
    • cast

      public boolean cast(PlayerCastContext ctx)
      Specified by:
      cast in class Spell
    • cast

      public boolean cast(EntityCastContext ctx)
      Overrides:
      cast in class Spell
    • cast

      public boolean cast(LocationCastContext ctx)
      Overrides:
      cast in class Spell
    • applyEffects

      protected boolean applyEffects(CastContext ctx, net.minecraft.world.entity.LivingEntity caster)
    • spawnParticles

      protected void spawnParticles(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity caster)
    • getBonusAmplifier

      protected int getBonusAmplifier(float potencyModifier)
    • properties

      @NotNull protected @NotNull SpellProperties properties()
      Specified by:
      properties in class Spell