public abstract class AbstractSkill extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractSkill.DelayedSkill |
Modifier and Type | Field and Description |
---|---|
protected boolean |
ASYNC_SAFE |
protected float |
chance |
protected List<SkillCondition> |
conditions
Conditions for executing this skill
|
protected List<SkillCondition> |
conditionsTarget |
protected List<SkillCondition> |
conditionsTrigger |
protected float |
cooldown |
protected HashMap<UUID,Long> |
cooldowns |
static long |
cooldownTimer |
protected PlaceholderInt |
delay |
protected String |
healthMod |
protected float |
power |
protected float |
powerScale |
protected boolean |
powerSplitBetweenTargets |
protected PlaceholderInt |
repeat |
protected PlaceholderInt |
repeatInterval |
protected boolean |
sourceIsOrigin |
protected boolean |
target_creative |
protected Optional<SkillTargeter> |
targeter
The optional targeter for this skill
|
protected SkillTrigger |
trigger |
protected UUID |
uuid |
Constructor and Description |
---|
AbstractSkill() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkHealth(SkillCaster skillCaster) |
protected boolean |
checkSkillTrigger(SkillMetadata meta) |
protected boolean |
checkSkillTrigger(SkillTrigger trigger) |
SkillMetadata |
evaluateTargets(SkillMetadata data) |
float |
getCooldown(SkillCaster skillCaster) |
static MythicMobs |
getPlugin() |
boolean |
onCooldown(SkillCaster skillCaster) |
protected SkillCondition |
parseSkillCondition(String strCondition) |
protected SkillTargeter |
parseSkillTargeter(String strTarget) |
protected SkillTrigger |
parseSkillTrigger(String strTrigger) |
protected boolean |
rollChance() |
void |
setCooldown(SkillCaster skillCaster,
float cooldown) |
void |
setTargetsCreativePlayers(boolean b) |
boolean |
targetsCreativePlayers() |
protected boolean ASYNC_SAFE
public static long cooldownTimer
protected UUID uuid
protected float cooldown
protected float power
protected float powerScale
protected PlaceholderInt delay
protected PlaceholderInt repeat
protected PlaceholderInt repeatInterval
protected float chance
protected String healthMod
protected boolean powerSplitBetweenTargets
protected SkillTrigger trigger
protected boolean sourceIsOrigin
protected Optional<SkillTargeter> targeter
protected boolean target_creative
protected List<SkillCondition> conditions
protected List<SkillCondition> conditionsTarget
protected List<SkillCondition> conditionsTrigger
public static MythicMobs getPlugin()
public boolean onCooldown(SkillCaster skillCaster)
public float getCooldown(SkillCaster skillCaster)
public void setCooldown(SkillCaster skillCaster, float cooldown)
protected boolean rollChance()
protected boolean checkHealth(SkillCaster skillCaster)
protected boolean checkSkillTrigger(SkillTrigger trigger)
protected boolean checkSkillTrigger(SkillMetadata meta)
protected SkillTrigger parseSkillTrigger(String strTrigger)
protected SkillTargeter parseSkillTargeter(String strTarget)
protected SkillCondition parseSkillCondition(String strCondition)
public void setTargetsCreativePlayers(boolean b)
public boolean targetsCreativePlayers()
public SkillMetadata evaluateTargets(SkillMetadata data)
Copyright © 2020. All rights reserved.