public class Skill extends AbstractSkill
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected List<String> |
conditionsLegacy |
protected MythicConfig |
config |
protected String |
file |
protected String |
internalName |
protected List<String> |
killMessages |
protected LinkedList<SkillMechanic> |
skills |
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 |
---|
Skill(Collection<String> skillList) |
Skill(String file,
String name,
MythicConfig mc) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkLegacyConditions(SkillCaster skillCaster) |
void |
execute(SkillMetadata data) |
static void |
execute(SkillMetadata data,
Queue<SkillMechanic> skillqueue) |
void |
execute(SkillTrigger basetrigger,
SkillCaster caster,
AbstractEntity trigger,
AbstractLocation origin,
HashSet<AbstractEntity> eTargets,
HashSet<AbstractLocation> lTargets,
float power) |
MythicConfig |
getConfig() |
String |
getInternalName() |
boolean |
isUsable(SkillMetadata data) |
boolean |
usable(SkillMetadata meta,
SkillTrigger trigger) |
checkHealth, checkSkillTrigger, checkSkillTrigger, evaluateTargets, getCooldown, getPlugin, onCooldown, parseSkillCondition, parseSkillTargeter, parseSkillTrigger, rollChance, setCooldown, setTargetsCreativePlayers, targetsCreativePlayers
protected final String file
protected final String internalName
protected final MythicConfig config
protected LinkedList<SkillMechanic> skills
public Skill(String file, String name, MythicConfig mc)
public Skill(Collection<String> skillList)
public String getInternalName()
public MythicConfig getConfig()
public boolean usable(SkillMetadata meta, SkillTrigger trigger)
public void execute(SkillTrigger basetrigger, SkillCaster caster, AbstractEntity trigger, AbstractLocation origin, HashSet<AbstractEntity> eTargets, HashSet<AbstractLocation> lTargets, float power)
public void execute(SkillMetadata data)
public static void execute(SkillMetadata data, Queue<SkillMechanic> skillqueue)
public boolean isUsable(SkillMetadata data)
public boolean checkLegacyConditions(SkillCaster skillCaster)
Copyright © 2020. All rights reserved.