Class CARPE_RETRACTUM
java.lang.Object
net.pottercraft.ollivanders2.spell.O2Spell
net.pottercraft.ollivanders2.spell.Knockback
net.pottercraft.ollivanders2.spell.CARPE_RETRACTUM
Seize and Pull Charm that pulls non-living entities toward the caster.
When the projectile hits a non-living entity, the spell pulls it toward the caster with velocity based on the caster's skill level. This spell is guaranteed to work (minimum distance of 1) and has lower overall distance and strength compared to similar spells.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intThe max distancestatic doubleThe max radiusstatic intThe max number of targetsstatic intThe min distancestatic intThe divisor for usesModifier to determine spell strengthFields inherited from class net.pottercraft.ollivanders2.spell.Knockback
maxDistance, maxTargets, minDistance, strengthReducer, velocityFields inherited from class net.pottercraft.ollivanders2.spell.O2Spell
branch, cooldownMessage, defaultRadius, flavorText, isAllowedFailureMessage, location, maxProjectileDistance, maxSpellLifetime, noProjectile, player, rightWand, spellMasteryLevel, spellType, text, usesModifier, vector -
Constructor Summary
ConstructorsConstructorDescriptionCARPE_RETRACTUM(@NotNull Ollivanders2 plugin, @NotNull org.bukkit.entity.Player player, @NotNull Double rightWand) Constructor.CARPE_RETRACTUM(Ollivanders2 plugin) Default constructor for use in generating spell text. -
Method Summary
Methods inherited from class net.pottercraft.ollivanders2.spell.Knockback
doCheckEffect, getMaxDistance, getMaxRadius, getMaxTargets, getMinDistance, getStrengthReducer, getVelocity, isPull, isTargetsMultiple, isTargetsSelf, isVerticalMethods inherited from class net.pottercraft.ollivanders2.spell.O2Spell
checkEffect, getCloseEntities, getCoolDown, getFailureMessage, getFlavorText, getLevel, getLifeTicks, getMagicBranch, getName, getNearbyDamageableEntities, getNearbyItems, getNearbyLivingEntities, getNearbyPlayers, getSuccessMessage, getTargetBlock, getText, getWorldGuardFlags, hasHitTarget, isAtMaxDistance, isKilled, isSpellAllowed, kill, move, revert, sendFailureMessage, sendSuccessMessage, setUsesModifier
-
Field Details
-
minDistanceConfig
public static int minDistanceConfigThe min distance -
maxDistanceConfig
public static int maxDistanceConfigThe max distance -
strengthReducerConfig
public static int strengthReducerConfigThe divisor for usesModifier to determine spell strength -
maxRadiusConfig
public static double maxRadiusConfigThe max radius -
maxTargetConfig
public static int maxTargetConfigThe max number of targets
-
-
Constructor Details
-
CARPE_RETRACTUM
Default constructor for use in generating spell text. Do not use to cast the spell.- Parameters:
plugin- the Ollivanders2 plugin
-
CARPE_RETRACTUM
public CARPE_RETRACTUM(@NotNull @NotNull Ollivanders2 plugin, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Double rightWand) Constructor.- Parameters:
plugin- a callback to the MC pluginplayer- the player who cast this spellrightWand- which wand the player was using
-