public class ShootMechanic extends SkillMechanic implements ITargetedEntitySkill, ITargetedLocationSkill
Modifier and Type | Class and Description |
---|---|
static class |
ShootMechanic.ProjectileData |
protected class |
ShootMechanic.ProjectileTracker |
protected static class |
ShootMechanic.ProjectileType |
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected boolean |
bounce |
protected boolean |
calculateFiringAngle |
protected int |
damage |
protected Optional<String> |
disguise |
protected boolean |
fromOrigin |
protected boolean |
gravity |
protected double |
hSpread |
protected int |
maxdistance |
protected Optional<Skill> |
onEndSkill |
protected String |
onEndSkillName |
protected Optional<Skill> |
onHitSkill |
protected String |
onHitSkillName |
protected String |
onStartSkillName |
protected Optional<Skill> |
onTickSkill |
protected String |
onTickSkillName |
protected boolean |
powerAffectsVelocity |
protected Class<? extends org.bukkit.entity.Projectile> |
projectileClass |
protected org.bukkit.inventory.ItemStack |
projectileItem |
protected ShootMechanic.ProjectileType |
projectileType |
protected float |
startYOffset |
protected int |
tickInterval |
protected PlaceholderDouble |
velocity |
protected double |
vSpread |
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 |
---|
ShootMechanic(String line,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
boolean |
castAtEntity(SkillMetadata data,
AbstractEntity target) |
boolean |
castAtLocation(SkillMetadata data,
AbstractLocation target) |
boolean |
shoot(SkillMetadata data,
AbstractLocation 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 ShootMechanic.ProjectileType projectileType
protected int damage
protected int maxdistance
protected PlaceholderDouble velocity
protected double hSpread
protected double vSpread
protected boolean powerAffectsVelocity
protected float startYOffset
protected Class<? extends org.bukkit.entity.Projectile> projectileClass
protected org.bukkit.inventory.ItemStack projectileItem
protected int tickInterval
protected String onTickSkillName
protected String onHitSkillName
protected String onEndSkillName
protected String onStartSkillName
protected boolean bounce
protected boolean gravity
protected boolean calculateFiringAngle
protected boolean fromOrigin
public ShootMechanic(String line, MythicLineConfig mlc)
public boolean castAtEntity(SkillMetadata data, AbstractEntity target)
castAtEntity
in interface ITargetedEntitySkill
public boolean castAtLocation(SkillMetadata data, AbstractLocation target)
castAtLocation
in interface ITargetedLocationSkill
public boolean shoot(SkillMetadata data, AbstractLocation target)
Copyright © 2020. All rights reserved.