public class ItemSprayEffect extends SkillMechanic implements ITargetedEntitySkill, ITargetedLocationSkill
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowPickup |
protected int |
amount |
protected int |
duration |
protected double |
force |
protected org.bukkit.inventory.ItemStack |
item |
protected String |
itemName |
protected double |
radius |
protected double |
yForce |
protected double |
yOffset |
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 |
---|
ItemSprayEffect(String skill,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
boolean |
castAtEntity(SkillMetadata data,
AbstractEntity target) |
boolean |
castAtLocation(SkillMetadata data,
AbstractLocation target) |
protected void |
playEffect(AbstractLocation l) |
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 String itemName
protected org.bukkit.inventory.ItemStack item
protected int amount
protected int duration
protected double radius
protected double force
protected double yForce
protected double yOffset
protected boolean allowPickup
public ItemSprayEffect(String skill, MythicLineConfig mlc)
public boolean castAtLocation(SkillMetadata data, AbstractLocation target)
castAtLocation
in interface ITargetedLocationSkill
public boolean castAtEntity(SkillMetadata data, AbstractEntity target)
castAtEntity
in interface ITargetedEntitySkill
protected void playEffect(AbstractLocation l)
Copyright © 2020. All rights reserved.