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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final floatprotected final floatprotected Set<net.minecraft.world.effect.MobEffect>protected floatprotected final floatFields 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 target) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) booleancast(PlayerCastContext ctx) static SpellProperty<Integer>getEffectDurationProperty(net.minecraft.world.effect.MobEffect effect) static SpellProperty<Integer>getEffectStrengthProperty(net.minecraft.world.effect.MobEffect effect) Set<net.minecraft.world.effect.MobEffect>static intgetStandardBonusAmplifier(float potencyModifier) particleCount(int particleCount) protected @NotNull SpellPropertiesprotected voidspawnParticles(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity target) Methods 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
-
Field Details
-
r
protected final float r -
g
protected final float g -
b
protected final float b -
mobEffects
-
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
-
particleCount
-
canCastByEntity
public boolean canCastByEntity()- Overrides:
canCastByEntityin classSpell
-
canCastByLocation
public boolean canCastByLocation()- Overrides:
canCastByLocationin classSpell
-
cast
-
cast
-
cast
-
applyEffects
-
spawnParticles
protected void spawnParticles(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity target) -
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) -
getMobEffects
-
properties
- Specified by:
propertiesin classSpell
-