Class ArmorEquipTrigger
java.lang.Object
studio.magemonkey.fabled.dynamic.trigger.ArmorEquipTrigger
- All Implemented Interfaces:
Trigger<studio.magemonkey.codex.api.armor.ArmorEquipEvent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.LivingEntitygetCaster(studio.magemonkey.codex.api.armor.ArmorEquipEvent event) Fetches the caster as determined by the triggering event.Class<studio.magemonkey.codex.api.armor.ArmorEquipEvent> getEvent()getKey()org.bukkit.entity.LivingEntityFetches the target as determined by the triggering event.voidReads data from the event and provides values to the caster's value data.booleanshouldTrigger(studio.magemonkey.codex.api.armor.ArmorEquipEvent event, int level, Settings settings) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface studio.magemonkey.fabled.dynamic.trigger.Trigger
postProcess
-
Constructor Details
-
ArmorEquipTrigger
public ArmorEquipTrigger()
-
-
Method Details
-
getKey
-
getEvent
-
shouldTrigger
public boolean shouldTrigger(studio.magemonkey.codex.api.armor.ArmorEquipEvent event, int level, Settings settings) - Specified by:
shouldTriggerin interfaceTrigger<studio.magemonkey.codex.api.armor.ArmorEquipEvent>- Parameters:
event- event detailslevel- the level of the owning skillsettings- skill settings- Returns:
- true if the skill should activate, false otherwise
-
setValues
Description copied from interface:TriggerReads 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. -
getCaster
public org.bukkit.entity.LivingEntity getCaster(studio.magemonkey.codex.api.armor.ArmorEquipEvent event) Description copied from interface:TriggerFetches the caster as determined by the triggering event. -
getTarget
public org.bukkit.entity.LivingEntity getTarget(studio.magemonkey.codex.api.armor.ArmorEquipEvent event, Settings settings) Description copied from interface:TriggerFetches the target as determined by the triggering event. This can be the same as the caster.
-