Class PhysicalDealtTrigger
java.lang.Object
studio.magemonkey.fabled.dynamic.trigger.PhysicalTrigger
studio.magemonkey.fabled.dynamic.trigger.PhysicalDealtTrigger
- All Implemented Interfaces:
Trigger<PhysicalDamageEvent>
Fabled © 2024
studio.magemonkey.fabled.dynamic.trigger.BlockBreakTrigger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.LivingEntity
getCaster
(PhysicalDamageEvent event) Fetches the caster as determined by the triggering event.getKey()
org.bukkit.entity.LivingEntity
getTarget
(PhysicalDamageEvent event, Settings settings) Fetches the target as determined by the triggering event.void
setValues
(PhysicalDamageEvent 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.PhysicalTrigger
getEvent, postProcess, shouldTrigger
-
Constructor Details
-
PhysicalDealtTrigger
public PhysicalDealtTrigger()
-
-
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
-