Class ProjectileSpell<T extends MagicProjectileEntity>
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.ProjectileSpell<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
ConstructorsConstructorDescriptionProjectileSpell(Function<net.minecraft.world.level.Level, T> projectileFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddProjectileExtras(CastContext ctx, T projectile) protected floatcalculateVelocity(CastContext ctx, MagicProjectileEntity projectile, float launchHeight) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) booleancast(PlayerCastContext ctx) protected @NotNull SpellPropertiesbooleanMethods 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, soundValues, toString
-
Field Details
-
projectileFactory
protected final Function<net.minecraft.world.level.Level,T extends MagicProjectileEntity> projectileFactory
-
-
Constructor Details
-
ProjectileSpell
-
-
Method Details
-
canCastByEntity
public boolean canCastByEntity()- Overrides:
canCastByEntityin classSpell
-
canCastByLocation
public boolean canCastByLocation()- Overrides:
canCastByLocationin classSpell
-
cast
-
cast
-
cast
-
calculateVelocity
protected float calculateVelocity(CastContext ctx, MagicProjectileEntity projectile, float launchHeight) -
addProjectileExtras
-
requiresPacket
public boolean requiresPacket()- Overrides:
requiresPacketin classSpell
-
properties
- Specified by:
propertiesin classSpell
-