Class TargetComponent

java.lang.Object
com.sucy.skill.dynamic.EffectComponent
com.sucy.skill.dynamic.target.TargetComponent
Direct Known Subclasses:
AreaTarget, ConeTarget, LinearTarget, LocationTarget, NearestTarget, OffsetTarget, RememberTarget, SelfTarget, SingleTarget

public abstract class TargetComponent extends EffectComponent
ProSkillAPI © 2023 com.sucy.skill.dynamic.target.TargetComponent
  • Field Details

    • spherePreview

      protected static final SpherePreview spherePreview
    • circlePreview

      protected static final CirclePreview circlePreview
  • Constructor Details

    • TargetComponent

      public TargetComponent()
  • Method Details

    • getType

      public ComponentType getType()
      Description copied from class: EffectComponent
      Retrieves the type of the component
      Specified by:
      getType in class EffectComponent
      Returns:
      component type
    • execute

      public boolean execute(org.bukkit.entity.LivingEntity caster, int level, List<org.bukkit.entity.LivingEntity> targets, boolean force)
      Executes the component
      Specified by:
      execute in class EffectComponent
      Parameters:
      caster - caster of the skill
      level - level of the skill
      targets - targets to apply to
      force -
      Returns:
      true if applied to something, false otherwise
    • load

      public void load(DynamicSkill skill, mc.promcteam.engine.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
    • playPreview

      public void playPreview(org.bukkit.entity.Player caster, int level, List<org.bukkit.entity.LivingEntity> targets, int step)
      Creates the list of indicators for the skill
      Overrides:
      playPreview in class EffectComponent
      Parameters:
      caster - caster reference
      level - the level of the skill to create for
      targets - location to base location on
      step - the current progress of the indicator