Class SkillDealtTrigger
java.lang.Object
studio.magemonkey.fabled.dynamic.trigger.SkillTrigger
studio.magemonkey.fabled.dynamic.trigger.SkillDealtTrigger
- All Implemented Interfaces:
Trigger<SkillDamageEvent>
Fabled © 2024
studio.magemonkey.fabled.dynamic.trigger.BlockBreakTrigger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.LivingEntity
getCaster
(SkillDamageEvent event) Fetches the caster as determined by the triggering event.getKey()
org.bukkit.entity.LivingEntity
getTarget
(SkillDamageEvent event, Settings settings) Fetches the target as determined by the triggering event.void
setValues
(SkillDamageEvent event, CastData data) Reads data from the event and provides values to the caster's value data.Methods inherited from class studio.magemonkey.fabled.dynamic.trigger.SkillTrigger
getEvent, postProcess, shouldTrigger
-
Constructor Details
-
SkillDealtTrigger
public SkillDealtTrigger()
-
-
Method Details
-
getKey
- Returns:
- unique key for the trigger
-
getCaster
Fetches the caster as determined by the triggering event.- Parameters:
event
- event details- Returns:
- the one to apply the trigger for
-
getTarget
Fetches the target as determined by the triggering event. This can be the same as the caster.- Parameters:
event
- event detailssettings
- skill settings- Returns:
- the one being affected by the trigger (initial target)
-
setValues
Reads data from the event and provides values to the caster's value data. This can be used within skills for more flexible effects. An example of this in base triggers is the Launch trigger providing the speed a projectile was launched so mechanics can replace it with equally-fast projectiles.- Parameters:
event
- event detailsdata
- caster's value data to populate
-