Interface Beacon

All Superinterfaces:
ActiveSkill, Scheduler, Skill

public interface Beacon extends Skill, Scheduler, ActiveSkill
Skill that allows the pet to act as a mobile beacon, periodically applying configurable potion-effect buffs to nearby players. The owner can select which buffs are active, choose the receiver scope (owner only, party, or everyone), and toggle the beacon on/off.

The number of simultaneously active buffs, effect duration, and range all scale with the pet's skilltree level via UpgradeComputer values. The skill ticks via Scheduler to reapply effects and persists selected buffs via a registered SkillStateCodec.

See Also:
  • Method Details

    • getDuration

      UpgradeComputer<Integer> getDuration()
      Returns the upgrade computer controlling the potion-effect duration in ticks.
      Returns:
      the upgrade computer for the potion-effect duration in ticks
    • getNumberOfBuffs

      UpgradeComputer<Integer> getNumberOfBuffs()
      Returns the upgrade computer controlling the maximum number of buffs the owner can select.
      Returns:
      the upgrade computer for the maximum number of buffs the owner can select
    • getRange

      UpgradeComputer<Number> getRange()
      Returns the upgrade computer controlling the beacon's effect radius in blocks.
      Returns:
      the upgrade computer for the beacon's effect radius in blocks
    • getBuff

      <T> UpgradeComputer<T> getBuff(Beacon.Buff buff)
      Returns the upgrade computer for a specific buff's amplifier level.
      Type Parameters:
      T - the value type of the buff's upgrade computer
      Parameters:
      buff - the buff to query
      Returns:
      the upgrade computer for the given buff