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 Supplier<net.minecraft.world.effect.MobEffect>[]protected final floatprotected floatprotected Set<net.minecraft.world.effect.MobEffect>protected 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 caster) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) booleancast(PlayerCastContext ctx) protected intgetBonusAmplifier(float potencyModifier) 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 caster) Methods inherited from class com.binaris.wizardry.api.content.spell.Spell
assignProperties, endCast, getAction, getCharge, getCooldown, getCost, getDesc, getDescriptionFormatted, getDescriptionId, getElement, getIcon, getLocation, getLoopSounds, getOrCreateDescriptionId, getOrCreateLocation, getPitch, getPitchVariation, getProperties, getTier, getType, getVolume, hasEnded, is, is, is, isEmpty, isEnabled, isInstantCast, onCharge, playSound, playSound, playSound, playSoundLoop, playSoundLoop, property, requiresPacket, setProperties, soundValues, toString
-
Field Details
-
effects
-
r
protected final float r -
g
protected final float g -
b
protected final float b -
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
-
getPotionSet
-
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 caster) -
getBonusAmplifier
protected int getBonusAmplifier(float potencyModifier) -
properties
- Specified by:
propertiesin classSpell
-