public abstract class Aura.AuraTracker extends Object implements io.lumine.utils.terminable.Terminable, Runnable, IParentSkill
Modifier and Type | Field and Description |
---|---|
protected int |
chargesRemaining |
protected io.lumine.utils.terminable.TerminableRegistry |
components |
protected Optional<AbstractEntity> |
entity |
protected boolean |
hasEnded |
protected int |
interval |
protected Optional<AbstractLocation> |
location |
protected int |
maxStacks |
protected SkillMetadata |
skillMetadata |
protected int |
stacks |
protected int |
startCharges |
protected int |
startDuration |
protected int |
ticksRemaining |
Constructor and Description |
---|
AuraTracker(AbstractEntity entity,
SkillMetadata data) |
AuraTracker(AbstractLocation location,
SkillMetadata data) |
AuraTracker(SkillCaster caster,
AbstractEntity target,
SkillMetadata data) |
AuraTracker(SkillCaster caster,
AbstractLocation target,
SkillMetadata data) |
AuraTracker(SkillMetadata data) |
Modifier and Type | Method and Description |
---|---|
void |
auraStart() |
void |
auraStop() |
void |
auraTick() |
void |
close() |
void |
consumeCharge() |
boolean |
executeAuraSkill(Optional<Skill> skill,
SkillMetadata data) |
boolean |
executeAuraSkill(Optional<Skill> skill,
SkillMetadata data,
boolean atCaster) |
boolean |
getCancelled() |
UUID |
getCasterUUID() |
boolean |
isValid() |
void |
merge(Aura.AuraTracker tracker) |
void |
registerAuraComponent(io.lumine.utils.terminable.Terminable component) |
void |
run() |
void |
setCancelled() |
boolean |
start() |
void |
terminateFromRegistry() |
protected final io.lumine.utils.terminable.TerminableRegistry components
protected SkillMetadata skillMetadata
protected Optional<AbstractEntity> entity
protected Optional<AbstractLocation> location
protected int stacks
protected int maxStacks
protected int chargesRemaining
protected int ticksRemaining
protected int startDuration
protected int startCharges
protected int interval
protected boolean hasEnded
public AuraTracker(SkillMetadata data)
public AuraTracker(SkillCaster caster, AbstractEntity target, SkillMetadata data)
public AuraTracker(AbstractEntity entity, SkillMetadata data)
public AuraTracker(SkillCaster caster, AbstractLocation target, SkillMetadata data)
public AuraTracker(AbstractLocation location, SkillMetadata data)
public void registerAuraComponent(io.lumine.utils.terminable.Terminable component)
public UUID getCasterUUID()
public void merge(Aura.AuraTracker tracker)
public boolean executeAuraSkill(Optional<Skill> skill, SkillMetadata data)
public boolean executeAuraSkill(Optional<Skill> skill, SkillMetadata data, boolean atCaster)
public boolean start()
public boolean isValid()
public void consumeCharge()
public void auraStart()
public void auraTick()
public void auraStop()
public void terminateFromRegistry()
public void close()
close
in interface io.lumine.utils.terminable.Terminable
close
in interface AutoCloseable
public void setCancelled()
setCancelled
in interface IParentSkill
public boolean getCancelled()
getCancelled
in interface IParentSkill
Copyright © 2020. All rights reserved.