Interface AbilityToggle
-
- All Known Implementing Classes:
BareboneToggle,CustomToggle,DefaultToggle
public interface AbilityToggleThis interface can be used to toggle or customize unwanted default abilities by the user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisOff(Ability ab)AbilityprocessAbility(Ability ab)Abilities that are ON (and have failed theisOff(org.telegram.abilitybots.api.objects.Ability)condition) will be processed by this method.
-
-
-
Method Detail
-
isOff
boolean isOff(Ability ab)
- Parameters:
ab- the target ability- Returns:
- true if the ability has been turned off
-
processAbility
Ability processAbility(Ability ab)
Abilities that are ON (and have failed theisOff(org.telegram.abilitybots.api.objects.Ability)condition) will be processed by this method.- Parameters:
ab- the target ability- Returns:
- the processed ability
-
-