Class TriggerMechanic


public class TriggerMechanic extends MechanicComponent
Fabled © 2024 studio.magemonkey.fabled.dynamic.mechanic.TriggerMechanic
  • Constructor Details

    • TriggerMechanic

      public TriggerMechanic()
  • Method Details

    • load

      public void load(DynamicSkill skill, studio.magemonkey.codex.mccore.config.parse.DataSection dataSection)
      Description copied from class: EffectComponent
      Loads component data from the configuration
      Overrides:
      load in class EffectComponent
      Parameters:
      skill - owning skill of the component
      dataSection - config data to load from
    • getKey

      public String getKey()
      Specified by:
      getKey in class EffectComponent
    • execute

      public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force)
      Description copied from class: EffectComponent
      Executes the component (to be implemented)
      Specified by:
      execute in class EffectComponent
      Parameters:
      caster - caster of the skill
      level - level of the skill
      targets - targets to execute on
      force - whether skill should be forced
      Returns:
      true if executed, false if conditions not met