public class CastMechanic extends Aura implements ITargetedEntitySkill, ITargetedLocationSkill
Modifier and Type | Class and Description |
---|---|
class |
CastMechanic.CastTracker |
Aura.AuraTracker
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelOnMove |
protected String |
castingText |
protected Optional<Skill> |
onCastSkill |
protected String |
onCastSkillName |
protected Optional<Skill> |
onInterruptedSkill |
protected String |
onInterruptedSkillName |
protected Optional<Skill> |
onNoTargetsSkill |
protected String |
onNoTargetsSkillName |
protected boolean |
showCastBar |
protected PlaceholderString |
spellName |
auraName, barTimer, barTimerColor, barTimerDisplay, barTimerStyle, cancelOnChangeWorld, cancelOnDeath, cancelOnGiveDamage, cancelOnQuit, cancelOnSkillCast, cancelOnTakeDamage, cancelOnTeleport, charges, doEndSkillOnTerminate, duration, interval, maxStacks, mergeAll, mergeSameCaster, onEndSkill, onEndSkillName, onStartSkill, onStartSkillName, onTickSkill, onTickSkillName, overwriteAll, overwriteCaster, refreshDuration, showBarTimer
clock, config, forceSync, line, originOverride, targetIsOrigin
ASYNC_SAFE, chance, conditions, conditionsTarget, conditionsTrigger, cooldown, cooldowns, cooldownTimer, delay, healthMod, power, powerScale, powerSplitBetweenTargets, repeat, repeatInterval, sourceIsOrigin, target_creative, targeter, trigger, uuid
Constructor and Description |
---|
CastMechanic(String skill,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
boolean |
castAtEntity(SkillMetadata data,
AbstractEntity target) |
boolean |
castAtLocation(SkillMetadata data,
AbstractLocation target) |
void |
failNoTargets(SkillMetadata data) |
execute, executeNoTargetSkill, executeSkills, executeSkills, executeTargetedEntitySkill, executeTargetedLocationSkill, getClock, getConfigLine, getRunAsync, getTimerInterval, init, isAsyncSafe, isUsableFromCaster, isUsableFromSkill, resetClock, setAsyncSafe, setTimerInterval, tickClock, usable, usable, usable
checkHealth, checkSkillTrigger, checkSkillTrigger, evaluateTargets, getCooldown, getPlugin, onCooldown, parseSkillCondition, parseSkillTargeter, parseSkillTrigger, rollChance, setCooldown, setTargetsCreativePlayers, targetsCreativePlayers
protected String onCastSkillName
protected String onInterruptedSkillName
protected String onNoTargetsSkillName
protected PlaceholderString spellName
protected boolean showCastBar
protected boolean cancelOnMove
protected String castingText
public CastMechanic(String skill, MythicLineConfig mlc)
public boolean castAtEntity(SkillMetadata data, AbstractEntity target)
castAtEntity
in interface ITargetedEntitySkill
public boolean castAtLocation(SkillMetadata data, AbstractLocation target)
castAtLocation
in interface ITargetedLocationSkill
public void failNoTargets(SkillMetadata data)
Copyright © 2020. All rights reserved.