public class PotionMechanic extends SkillMechanic implements ITargetedEntitySkill
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected boolean |
ambientParticles |
protected PlaceholderInt |
duration |
protected PlaceholderString |
effect |
protected boolean |
hasIcon |
protected boolean |
hasParticles |
protected PlaceholderInt |
lvl |
protected boolean |
overwrite |
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 |
---|
PotionMechanic(String line,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
boolean |
castAtEntity(SkillMetadata data,
AbstractEntity target) |
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 effect
protected PlaceholderInt duration
protected PlaceholderInt lvl
protected boolean overwrite
protected boolean ambientParticles
protected boolean hasParticles
protected boolean hasIcon
public PotionMechanic(String line, MythicLineConfig mlc)
public boolean castAtEntity(SkillMetadata data, AbstractEntity target)
castAtEntity
in interface ITargetedEntitySkill
Copyright © 2020. All rights reserved.