Package de.Keyle.MyPet.api.skill.skills
Interface Potion
Skill that turns the pet into a field alchemist: the skilltree grants, per level, which splash
potions the pet may throw (its arsenal), each with its own cooldown. The pet throws from
real bottles in its Backpack, aiming each by the potion's effect category — harmful potions at the
mob its
Behavior has targeted, helpful ones at its owner. The materialize upgrade
lets it conjure permitted potions without backpack stock.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordOne permitted potion and how many seconds must pass between throws of it. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntry(Potion.Entry entry) Adds a permitted potion to the arsenal (called as the skilltree upgrades apply).The current arsenal — every potion the pet may throw, with its cooldown.When granted, the pet conjures permitted potions with no backpack stock (thetoollessanalog).voidremoveEntry(Potion.Entry entry) Removes a permitted potion from the arsenal (upgrade inversion).Methods inherited from interface de.Keyle.MyPet.api.skill.skilltree.Skill
applyState, getName, getName, getPet, getState, getUpgradeMessage, isActive, reset, toPrettyComponent
-
Method Details
-
addEntry
Adds a permitted potion to the arsenal (called as the skilltree upgrades apply).- Parameters:
entry- the potion to add to the arsenal
-
removeEntry
Removes a permitted potion from the arsenal (upgrade inversion).- Parameters:
entry- the potion to remove from the arsenal
-
getArsenal
List<Potion.Entry> getArsenal()The current arsenal — every potion the pet may throw, with its cooldown.- Returns:
- every potion this pet may throw
-
getMaterialize
UpgradeComputer<Boolean> getMaterialize()When granted, the pet conjures permitted potions with no backpack stock (thetoollessanalog).- Returns:
- the upgrade computer backing this value
-