public class SkillMetadata extends Object implements Cloneable, PlaceholderMeta
Constructor and Description |
---|
SkillMetadata(SkillMetadata source) |
SkillMetadata(SkillTrigger cause,
SkillCaster am,
AbstractEntity trigger) |
SkillMetadata(SkillTrigger cause,
SkillCaster am,
AbstractEntity trigger,
AbstractLocation origin,
HashSet<AbstractEntity> eTargets,
HashSet<AbstractLocation> lTargets,
float power) |
Modifier and Type | Method and Description |
---|---|
void |
cancelEvent() |
SkillMetadata |
clone() |
SkillMetadata |
deepClone() |
IParentSkill |
getCallingEvent() |
HashSet<AbstractEntity> |
getEntityTargets() |
boolean |
getIsAsync() |
HashSet<AbstractLocation> |
getLocationTargets() |
Optional<Object> |
getMetadata(String key) |
void |
setCallingEvent(IParentSkill caller) |
void |
setCaster(SkillCaster caster) |
SkillMetadata |
setEntityTarget(AbstractEntity target) |
SkillMetadata |
setEntityTargets(HashSet<AbstractEntity> targets) |
SkillMetadata |
setIsAsync(boolean b) |
SkillMetadata |
setLocationTarget(AbstractLocation target) |
SkillMetadata |
setLocationTargets(HashSet<AbstractLocation> targets) |
SkillMetadata |
setMetadata(String key,
Object value) |
SkillMetadata |
setOrigin(AbstractLocation o) |
void |
setTrigger(AbstractEntity entity) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCaster, getTrigger
public SkillMetadata(SkillTrigger cause, SkillCaster am, AbstractEntity trigger)
public SkillMetadata(SkillTrigger cause, SkillCaster am, AbstractEntity trigger, AbstractLocation origin, HashSet<AbstractEntity> eTargets, HashSet<AbstractLocation> lTargets, float power)
public SkillMetadata(SkillMetadata source)
public SkillMetadata setOrigin(AbstractLocation o)
public boolean getIsAsync()
public SkillMetadata setIsAsync(boolean b)
public IParentSkill getCallingEvent()
public void setCallingEvent(IParentSkill caller)
public void cancelEvent()
public HashSet<AbstractEntity> getEntityTargets()
public SkillMetadata setEntityTargets(HashSet<AbstractEntity> targets)
public SkillMetadata setEntityTarget(AbstractEntity target)
public HashSet<AbstractLocation> getLocationTargets()
public SkillMetadata setLocationTargets(HashSet<AbstractLocation> targets)
public SkillMetadata setLocationTarget(AbstractLocation target)
public SkillMetadata setMetadata(String key, Object value)
public SkillMetadata clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public SkillMetadata deepClone()
public void setCaster(SkillCaster caster)
public void setTrigger(AbstractEntity entity)
Copyright © 2020. All rights reserved.