Class Telekinesis
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.RaySpell
com.binaris.wizardry.content.spell.sorcery.Telekinesis
-
Field Summary
Fields inherited from class com.binaris.wizardry.content.spell.abstr.RaySpell
aimAssist, hitLiquids, ignoreLivingEntities, ignoreUncollidables, particleJitter, particleSpacing, particleVelocity, Y_OFFSETFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected booleanonBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin) protected booleanonEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin) protected booleanonMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) protected @NotNull SpellPropertiesbooleanWhether this spell requires a packet to be sent when it is cast.Methods inherited from class com.binaris.wizardry.content.spell.abstr.RaySpell
aimAssist, cast, cast, cast, hitLiquids, ignoreLivingEntities, ignoreUncollidables, particleJitter, particleSpacing, particleVelocity, shootSpell, spawnParticle, spawnParticleRayMethods 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, setProperties, soundValues, toString
-
Constructor Details
-
Telekinesis
public Telekinesis()
-
-
Method Details
-
onEntityHit
protected boolean onEntityHit(CastContext ctx, net.minecraft.world.phys.EntityHitResult entityHit, net.minecraft.world.phys.Vec3 origin) - Specified by:
onEntityHitin classRaySpell
-
onBlockHit
protected boolean onBlockHit(CastContext ctx, net.minecraft.world.phys.BlockHitResult blockHit, net.minecraft.world.phys.Vec3 origin) - Specified by:
onBlockHitin classRaySpell
-
onMiss
protected boolean onMiss(CastContext ctx, net.minecraft.world.phys.Vec3 origin, net.minecraft.world.phys.Vec3 direction) -
canCastByEntity
public boolean canCastByEntity()- Overrides:
canCastByEntityin classRaySpell
-
canCastByLocation
public boolean canCastByLocation()- Overrides:
canCastByLocationin classRaySpell
-
requiresPacket
public boolean requiresPacket()Description copied from class:SpellWhether this spell requires a packet to be sent when it is cast. Returns true by default, but can be overridden to return false if the spell's cast() method does not use any code that must be executed client-side (i.e. particle spawning). This is not checked for continuous spells, because they never need to send packets.If in doubt, leave this method as is; it is purely an optimisation.
- Overrides:
requiresPacketin classSpell- Returns:
- true if the spell code should be run on the server and all clients in the dimension, false if the spell code should only be run on the server and the client of the player casting it.
-
properties
- Specified by:
propertiesin classSpell
-