Class BareboneToggle
Object
BareboneToggle
- All Implemented Interfaces:
AbilityToggle
This toggle can be used as-is to turn off ALL the default abilities supplied by the library.
This is for users who are interested in the barebone functionality of AbilityBot.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAbilities that are ON (and have failed theAbilityToggle.isOff(org.telegram.telegrambots.abilitybots.api.objects.Ability)condition) will be processed by this method.
-
Constructor Details
-
BareboneToggle
public BareboneToggle()
-
-
Method Details
-
isOff
- Specified by:
isOffin interfaceAbilityToggle- Parameters:
ability- the target ability- Returns:
- true if the ability has been turned off
-
processAbility
Description copied from interface:AbilityToggleAbilities that are ON (and have failed theAbilityToggle.isOff(org.telegram.telegrambots.abilitybots.api.objects.Ability)condition) will be processed by this method.- Specified by:
processAbilityin interfaceAbilityToggle- Parameters:
ab- the target ability- Returns:
- the processed ability
-