Interface ItemEffectHandler
- All Known Implementing Classes:
AddHardware,AddObjective,AddUpgrade,BuffSpeedEffect,HealEffect,RemoveObjective
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for defining item effects that can be applied to entities.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(Entity player, EffectConfig cfg) Apply a single effect to the player.
-
Method Details
-
apply
Apply a single effect to the player.- Parameters:
player- the player entitycfg- the effect configuration containing effect parameters- Returns:
trueif the effect was successfully applied;falseotherwise
-