Annotation Interface AbilityInfo
The
AbilityInfo annotation is used to define the properties of an Ability. It includes information such as cast type, cooldown,
description, duration, impact, impact angle, multi-target capability, name, origin, pivot offsets, range, and value.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe cast type of the ability.intThe cooldown of the ability.The description of the ability.intThe duration of the ability.intThe impact of the ability.intThe impact angle of the ability.booleanWhether the ability is multi-target.The name of the ability.The origin of the ability.doubleThe pivot offset X of the ability.doubleThe pivot offset Y of the ability.intThe range of the ability.intThe value of the ability.
-
Element Details
-
castType
CastType castTypeThe cast type of the ability.- Returns:
- The cast type of the ability
- Default:
INSTANT
-
cooldown
int cooldownThe cooldown of the ability.- Returns:
- The cooldown of the ability
- Default:
0
-
description
String descriptionThe description of the ability.- Returns:
- The description of the ability
- Default:
""
-
duration
int durationThe duration of the ability.- Returns:
- The duration of the ability
- Default:
0
-
impact
int impactThe impact of the ability.- Returns:
- The impact of the ability
- Default:
0
-
impactAngle
int impactAngleThe impact angle of the ability.- Returns:
- The impact angle of the ability
- Default:
360
-
multiTarget
boolean multiTargetWhether the ability is multi-target.- Returns:
trueif the ability is multi-target;falseotherwise
- Default:
false
-
name
String nameThe name of the ability.- Returns:
- The name of the ability
- Default:
""
-
origin
EntityPivotType originThe origin of the ability.- Returns:
- The origin of the ability
- Default:
COLLISIONBOX_CENTER
-
pivotOffsetX
double pivotOffsetXThe pivot offset X of the ability.- Returns:
- The pivot offset X of the ability
- Default:
0.0
-
pivotOffsetY
double pivotOffsetYThe pivot offset Y of the ability.- Returns:
- The pivot offset Y of the ability
- Default:
0.0
-
range
int rangeThe range of the ability.- Returns:
- The range of the ability
- Default:
0
-
value
int valueThe value of the ability.- Returns:
- The value of the ability
- Default:
0
-