public class ProjectileMechanic extends Projectile implements ITargetedEntitySkill, ITargetedLocationSkill
Modifier and Type | Class and Description |
---|---|
class |
ProjectileMechanic.ProjectileMechanicTracker |
protected static class |
ProjectileMechanic.ProjectileType |
Projectile.BulletType, Projectile.ProjectileTracker
AbstractSkill.DelayedSkill
Modifier and Type | Field and Description |
---|---|
protected float |
heightFromSurface |
protected boolean |
hugSurface |
protected float |
projectileGravity |
protected ProjectileMechanic.ProjectileType |
type |
BULLET_ENTITIES, bulletMaterial, bulletMob, bulletMythicItem, bulletProjectile, bulletSpin, bulletType, duration, fromOrigin, hitConditions, hitConditionString, hitNonPlayers, hitPlayers, hitRadius, hitSelf, hitTarget, hitTargetOnly, maxDistanceSquared, onEndSkill, onEndSkillName, onHitSkill, onHitSkillName, onStartSkill, onStartSkillName, onTickSkill, onTickSkillName, powerAffectsRange, powerAffectsVelocity, projectileVelocity, projectileVelocityAccuracy, projectileVelocityHorizNoise, projectileVelocityHorizNoiseBase, projectileVelocityHorizOffset, projectileVelocityVertNoise, projectileVelocityVertNoiseBase, projectileVelocityVertOffset, startForwardOffset, startSideOffset, startYOffset, stopOnHitEntity, stopOnHitGround, targetYOffset, tickInterval, ticksPerSecond, verticalHitRadius
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 |
---|
ProjectileMechanic(String skill,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
boolean |
castAtEntity(SkillMetadata data,
AbstractEntity target) |
boolean |
castAtLocation(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 ProjectileMechanic.ProjectileType type
protected float projectileGravity
protected boolean hugSurface
protected float heightFromSurface
public ProjectileMechanic(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
Copyright © 2020. All rights reserved.