Package de.Keyle.MyPet.api.skill
Interface UpgradeComputer.UpgradeCallback<T>
- Type Parameters:
T- the value type matching the owning computer
- Enclosing class:
UpgradeComputer<T>
public static interface UpgradeComputer.UpgradeCallback<T>
Listener interface notified whenever the
UpgradeComputer's current
value changes due to modifier addition or removal.-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(T newValue, UpgradeComputer.CallbackReason reason) Called after the computed value changes.
-
Method Details
-
run
Called after the computed value changes.- Parameters:
newValue- the recomputed current valuereason- whether modifiers were added or removed
-