Class AreaEffectSpell
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.AreaEffectSpell
- Direct Known Subclasses:
BlindingFlash,Enrage,Firestorm,FontOfMana,ForestsCurse,GroupHeal,IceAge,InvigoratingPresence,PlagueOfDarkness
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected floatprotected booleanFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanaffectEntity(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.entity.LivingEntity target, int targetCount) alwaysSucceed(boolean alwaysSucceed) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) booleancast(PlayerCastContext ctx) protected booleanfindAndAffectEntities(CastContext ctx, net.minecraft.world.phys.Vec3 origin) particleDensity(float particleDensity) protected voidspawnParticle(net.minecraft.world.level.Level world, double x, double y, double z) protected voidspawnParticleEffect(CastContext ctx, net.minecraft.world.phys.Vec3 origin, double radius) targetAllies(boolean targetAllies) 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, properties, property, requiresPacket, setProperties, soundValues, toString
-
Field Details
-
targetAllies
protected boolean targetAllies -
alwaysSucceed
protected boolean alwaysSucceed -
particleDensity
protected float particleDensity
-
-
Constructor Details
-
AreaEffectSpell
public AreaEffectSpell()
-
-
Method Details
-
targetAllies
-
alwaysSucceed
-
particleDensity
-
canCastByEntity
public boolean canCastByEntity()- Overrides:
canCastByEntityin classSpell
-
canCastByLocation
public boolean canCastByLocation()- Overrides:
canCastByLocationin classSpell
-
cast
-
cast
-
cast
-
findAndAffectEntities
-
affectEntity
protected abstract boolean affectEntity(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.entity.LivingEntity target, int targetCount) -
spawnParticleEffect
protected void spawnParticleEffect(CastContext ctx, net.minecraft.world.phys.Vec3 origin, double radius) -
spawnParticle
protected void spawnParticle(net.minecraft.world.level.Level world, double x, double y, double z)
-