public class SkillMechanic extends AbstractSkill
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected long |
clock |
protected MythicLineConfig |
config |
protected boolean |
forceSync |
protected int |
interval |
protected String |
line |
protected Optional<AbstractLocation> |
originOverride |
protected boolean |
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 |
---|
SkillMechanic(String skill,
MythicLineConfig mlc) |
SkillMechanic(String skill,
MythicLineConfig mlc,
int interval) |
checkHealth, checkSkillTrigger, checkSkillTrigger, evaluateTargets, getCooldown, getPlugin, onCooldown, parseSkillCondition, parseSkillTargeter, parseSkillTrigger, rollChance, setCooldown, setTargetsCreativePlayers, targetsCreativePlayers
protected final MythicLineConfig config
protected int interval
protected long clock
protected String line
protected boolean forceSync
protected boolean targetIsOrigin
protected Optional<AbstractLocation> originOverride
public SkillMechanic(String skill, MythicLineConfig mlc, int interval)
public SkillMechanic(String skill, MythicLineConfig mlc)
public void init(String skill, MythicLineConfig mlc)
public String getConfigLine()
public void setAsyncSafe(boolean bool)
public boolean isAsyncSafe()
public void setTimerInterval(int interval)
public int getTimerInterval()
public void resetClock()
public void tickClock()
public long getClock()
public boolean isUsableFromSkill(SkillMetadata meta)
public boolean isUsableFromCaster(SkillMetadata meta)
@Deprecated public boolean usable(SkillMetadata meta)
@Deprecated public boolean usable(SkillCaster skillCaster, SkillTrigger trigger)
@Deprecated public boolean usable(SkillCaster am)
public boolean execute(SkillMetadata oData)
public boolean executeSkills(SkillTrigger skilltrigger, ActiveMob am, AbstractEntity trigger, AbstractLocation origin, HashSet<AbstractEntity> eTargets, HashSet<AbstractLocation> lTargets, float power)
public boolean executeSkills(SkillMetadata data)
protected static void executeTargetedEntitySkill(SkillMechanic mechanic, SkillMetadata data)
protected static void executeTargetedLocationSkill(SkillMechanic mechanic, SkillMetadata data)
protected static void executeNoTargetSkill(SkillMechanic mechanic, SkillMetadata data)
public boolean getRunAsync()
Copyright © 2020. All rights reserved.