Package de.Keyle.MyPet.api.skill.skills
Interface Beacon
- All Superinterfaces:
ActiveSkill,Scheduler,Skill
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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumerates the potion-effect buffs that the Beacon skill can apply.static enumDetermines which players receive the beacon's potion-effect buffs.static final recordContext for the Beacon buff-selection menu.static final recordSnapshot of a Beacon skill's persisted or live state — the player-chosen buffs, the toggle, and the receiver scope. -
Method Summary
Modifier and TypeMethodDescription<T> UpgradeComputer<T> getBuff(Beacon.Buff buff) Returns the upgrade computer for a specific buff's amplifier level.Returns the upgrade computer controlling the potion-effect duration in ticks.Returns the upgrade computer controlling the maximum number of buffs the owner can select.getRange()Returns the upgrade computer controlling the beacon's effect radius in blocks.Methods inherited from interface de.Keyle.MyPet.api.skill.ActiveSkill
activateMethods inherited from interface de.Keyle.MyPet.api.skill.skilltree.Skill
applyState, getName, getName, getPet, getState, getUpgradeMessage, isActive, reset, toPrettyComponent
-
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
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
-