Class CastLevelCondition


public class CastLevelCondition extends ConditionComponent
  • Constructor Details

    • CastLevelCondition

      public CastLevelCondition()
  • Method Details

    • load

      public void load(DynamicSkill skill, studio.magemonkey.codex.mccore.config.parse.DataSection config)
      Description copied from class: EffectComponent
      Loads component data from the configuration
      Overrides:
      load in class EffectComponent
      Parameters:
      skill - owning skill of the component
      config - 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: ConditionComponent
      Executes the component (to be implemented)
      Overrides:
      execute in class ConditionComponent
      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