Class RaySpell
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.RaySpell
- Direct Known Subclasses:
Arc,ArcaneLockSpell,Banish,Bubble,Cobwebs,Containment,CurseOfEnfeeblement,CurseOfSoulbinding,CurseOfUndeath,Detonate,Entrapment,FireBreath,FlameRay,Freeze,FrostRay,HealAlly,Ignite,LifeDrain,Meteor,Permafrost,PlayerHand,Poison,RayOfPurification,Reversal,Telekinesis,TrapSlime,Whirlwind,Wither,WizardHand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected booleanprotected booleanprotected booleanprotected doubleprotected doubleprotected doubleprotected static final doubleFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaimAssist(float aimAssist) booleanbooleanbooleancast(EntityCastContext ctx) booleancast(LocationCastContext ctx) booleancast(PlayerCastContext ctx) hitLiquids(boolean hitLiquids) ignoreLivingEntities(boolean ignoreLivingEntities) ignoreUncollidables(boolean ignoreUncollidables) protected abstract booleanonBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin) protected abstract booleanonEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin) protected abstract booleanonMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) particleJitter(double particleJitter) particleSpacing(double particleSpacing) particleVelocity(double particleVelocity) protected booleanshootSpell(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) protected voidspawnParticle(CastContext ctx, double x, double y, double z, double vx, double vy, double vz) protected voidspawnParticleRay(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction, double distance) 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
-
Y_OFFSET
protected static final double Y_OFFSET- See Also:
-
particleSpacing
protected double particleSpacing -
particleJitter
protected double particleJitter -
particleVelocity
protected double particleVelocity -
ignoreLivingEntities
protected boolean ignoreLivingEntities -
hitLiquids
protected boolean hitLiquids -
ignoreUncollidables
protected boolean ignoreUncollidables -
aimAssist
protected float aimAssist
-
-
Constructor Details
-
RaySpell
public RaySpell()
-
-
Method Details
-
particleSpacing
-
particleJitter
-
particleVelocity
-
ignoreLivingEntities
-
hitLiquids
-
ignoreUncollidables
-
aimAssist
-
canCastByEntity
public boolean canCastByEntity()- Overrides:
canCastByEntityin classSpell
-
canCastByLocation
public boolean canCastByLocation()- Overrides:
canCastByLocationin classSpell
-
cast
-
cast
-
cast
-
onEntityHit
protected abstract boolean onEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin) -
onBlockHit
protected abstract boolean onBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin) -
onMiss
protected abstract boolean onMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) -
shootSpell
protected boolean shootSpell(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) -
spawnParticleRay
protected void spawnParticleRay(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction, double distance) -
spawnParticle
protected void spawnParticle(CastContext ctx, double x, double y, double z, double vx, double vy, double vz)
-