Class CureEffects
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.BuffSpell
com.binaris.wizardry.content.spell.healing.CureEffects
-
Field Summary
Fields inherited from class com.binaris.wizardry.content.spell.abstr.BuffSpell
b, g, mobEffects, particleCount, rFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapplyEffects(CastContext ctx, net.minecraft.world.entity.LivingEntity caster) Applies the mob effects to the target.protected @NotNull SpellPropertiesThis method is where you should set the default properties for your spell when creating a new spell class.Methods inherited from class com.binaris.wizardry.content.spell.abstr.BuffSpell
canCastByEntity, canCastByLocation, cast, cast, cast, getEffectDurationProperty, getEffectStrengthProperty, getMobEffects, getStandardBonusAmplifier, particleCount, spawnParticlesMethods inherited from class com.binaris.wizardry.api.content.spell.Spell
assignProperties, endCast, equals, getAction, getChargeUp, getCooldown, getCost, getDesc, getDescriptionFormatted, getDescriptionId, getElement, getIcon, getLocation, getLoopSounds, getOrCreateDescriptionId, getOrCreateLocation, getPitch, getPitchVariation, getProperties, getTier, getType, getVolume, isEnabled, isInstantCast, onCharge, playSound, playSound, playSound, playSoundLoop, playSoundLoop, property, requiresPacket, soundValues, toString
-
Constructor Details
-
CureEffects
public CureEffects()
-
-
Method Details
-
applyEffects
Description copied from class:BuffSpellApplies 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:
applyEffectsin classBuffSpell- 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
Description copied from class:SpellThis 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:
propertiesin classBuffSpell- Returns:
- A SpellProperties object with the default properties for your spell.
-