Class Spell
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
- Direct Known Subclasses:
AreaEffectSpell,ArrowSpell,BetterFlight,Blink,BlockWithSurprise,BuffSpell,Charge,ConjureItemSpell,ConstructSpell,DragonFireball,Evade,Fangs,FlamingWeapon,Flight,FrostBarrier,GrowthAura,ImbueWeapon,InvokeWeather,Leap,Levitation,LightningPulse,MinionSpell,NoneSpell,PhaseStep,PocketFurnace,PocketWorkbench,ProjectileSpell,RaySpell,ShulkerBullet,SpeedTime,VanishingBox,WitherSkullSpell
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected floatprotected float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SpellassignProperties(SpellProperties properties) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) abstract booleancast(PlayerCastContext ctx) voidendCast(CastContext cxt) booleanintintintgetCost()net.minecraft.network.chat.ComponentgetDesc()net.minecraft.network.chat.Componentnet.minecraft.resources.ResourceLocationgetIcon()net.minecraft.resources.ResourceLocationprotected net.minecraft.sounds.SoundEvent[]protected Stringprotected net.minecraft.resources.ResourceLocationfloatgetPitch()floatfinal SpellPropertiesgetTier()getType()floatbooleanisEnabled(SpellContext context) booleanvoidonCharge(CastContext ctx) Deprecated.protected voidplaySound(net.minecraft.world.level.Level world, double x, double y, double z, int ticksInUse, int duration) protected voidplaySound(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int castTicks, int duration) protected voidplaySound(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 pos, int castTicks, int duration) protected final voidplaySoundLoop(net.minecraft.world.level.Level world, double x, double y, double z, int ticksInUse, int duration) protected final voidplaySoundLoop(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int ticksInUse) protected abstract @NotNull SpellPropertiesfinal <T> Tproperty(SpellProperty<T> property) booleansoundValues(float volume, float pitch, float pitchVariation) toString()
-
Field Details
-
volume
protected float volume -
pitch
protected float pitch -
pitchVariation
protected float pitchVariation
-
-
Constructor Details
-
Spell
public Spell()
-
-
Method Details
-
cast
-
cast
-
cast
-
endCast
-
onCharge
Deprecated. -
isInstantCast
public boolean isInstantCast() -
canCastByEntity
public boolean canCastByEntity() -
canCastByLocation
public boolean canCastByLocation() -
requiresPacket
public boolean requiresPacket() -
getDescriptionFormatted
public net.minecraft.network.chat.Component getDescriptionFormatted() -
getOrCreateDescriptionId
-
getDescriptionId
-
getOrCreateLocation
protected net.minecraft.resources.ResourceLocation getOrCreateLocation() -
getLocation
public net.minecraft.resources.ResourceLocation getLocation() -
getDesc
public net.minecraft.network.chat.Component getDesc() -
getIcon
public net.minecraft.resources.ResourceLocation getIcon() -
getProperties
-
properties
-
assignProperties
-
property
-
getChargeUp
public int getChargeUp() -
getType
-
getAction
-
getElement
-
getTier
-
getCost
public int getCost() -
getCooldown
public int getCooldown() -
isEnabled
-
toString
-
equals
-
soundValues
-
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getPitchVariation
public float getPitchVariation() -
playSound
protected void playSound(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int castTicks, int duration) -
playSound
protected void playSound(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 pos, int castTicks, int duration) -
playSound
protected void playSound(net.minecraft.world.level.Level world, double x, double y, double z, int ticksInUse, int duration) -
playSoundLoop
protected final void playSoundLoop(net.minecraft.world.level.Level world, net.minecraft.world.entity.LivingEntity entity, int ticksInUse) -
playSoundLoop
protected final void playSoundLoop(net.minecraft.world.level.Level world, double x, double y, double z, int ticksInUse, int duration) -
getLoopSounds
protected net.minecraft.sounds.SoundEvent[] getLoopSounds()
-