public class ModifyScoreMechanic extends SkillMechanic implements INoTargetSkill
Modifier and Type | Class and Description |
---|---|
protected static class |
ModifyScoreMechanic.ModifyScoreAction |
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected ModifyScoreMechanic.ModifyScoreAction |
action |
protected PlaceholderString |
entry |
protected PlaceholderString |
objective |
protected PlaceholderString |
value |
clock, config, forceSync, interval, 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 |
---|
ModifyScoreMechanic(String skill,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
protected int |
applyModifier(int score,
int value) |
boolean |
cast(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 PlaceholderString entry
protected PlaceholderString objective
protected ModifyScoreMechanic.ModifyScoreAction action
protected PlaceholderString value
public ModifyScoreMechanic(String skill, MythicLineConfig mlc)
public boolean cast(SkillMetadata data)
cast
in interface INoTargetSkill
protected int applyModifier(int score, int value)
Copyright © 2020. All rights reserved.