Package com.burchard36.api
Class ApiSettings
java.lang.Object
com.burchard36.api.ApiSettings
The settings for the API to use.
do not initialize this,
BurchAPI
does this already if your main class extends it.- Since:
- 2.1.5
- Author:
- Dalton Burchard
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockCommandFromLoading(Class<? extends ApiCommand> clazz)
Blocks a specific command class from being automatically registeredblockDataStoreFromLoading(Class<? extends DataStore> clazz)
Blocks a DataStore storage handler not load on STARTUPuseCommandModule(boolean useCommandModule)
Sets whether the Command module should automatically register all of its commands This default value is trueuseInventoryModule(boolean useInventoryModule)
Sets whether the Listener for the Inventory API should be enabled This value defaults to true
-
Field Details
-
dataStoreAutoRegisterBlacklist
-
-
Constructor Details
-
ApiSettings
protected ApiSettings()Creates a new instance of this class- Since:
- 2.1.5
-
-
Method Details
-
blockDataStoreFromLoading
Blocks a DataStore storage handler not load on STARTUP- Parameters:
clazz
- A class that extendsDataStore
typically in YourClass.class format- Returns:
- instance of this class
- Since:
- 2.1.8
-
blockCommandFromLoading
Blocks a specific command class from being automatically registered- Parameters:
clazz
- Class file instance of your class extendingApiCommand
- Returns:
- Instance of this
ApiSettings
- Since:
- 2.1.5
-
useCommandModule
Sets whether the Command module should automatically register all of its commands This default value is true- Parameters:
useCommandModule
- ABoolean
, false if you do not want commands to automtically register- Returns:
- Instance of this
ApiSettings
- Since:
- 2.1.5
-
useInventoryModule
Sets whether the Listener for the Inventory API should be enabled This value defaults to true- Parameters:
useInventoryModule
- ABoolean
, false if the Listener should not be enabled- Returns:
- Instance of this
ApiSettings
- Since:
- 2.1.5
-