Class ExperienceModifier
java.lang.Object
de.Keyle.MyPet.api.skill.experience.modifier.ExperienceModifier
- Direct Known Subclasses:
AdditiveModifier,GlobalModifier,MultiplicativeModifier,PermissionModifier
Abstract base class for experience modifiers that transform the amount of experience a pet
receives from a kill.
Modifiers are applied in a chain. Each modifier receives the experience value as modified by the previous modifier, plus the original unmodified base value for reference. Subclasses implement specific strategies such as additive bonuses, multiplicative scaling, or permission-based multipliers.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doublemodify(double experience, double baseExperience) Applies this modifier to the given experience value.
-
Constructor Details
-
ExperienceModifier
public ExperienceModifier()Creates a modifier.
-
-
Method Details
-
modify
public abstract double modify(double experience, double baseExperience) Applies this modifier to the given experience value.- Parameters:
experience- the experience value as modified by prior modifiers in the chainbaseExperience- the original unmodified experience from the mob kill- Returns:
- the modified experience value to pass to the next modifier (or to award)
-