CommandAPI 11.1.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.InternalConfig Class Reference

Configuration wrapper class. More...

+ Inheritance diagram for dev.jorel.commandapi.InternalConfig:

Public Member Functions

 InternalConfig (CommandAPIConfig<?> config)
 Creates an InternalConfig from a CommandAPIConfig. More...
 
boolean hasVerboseOutput ()
 
boolean hasSilentLogs ()
 
String getMissingImplementationMessage ()
 
File getDispatcherFile ()
 
String getNamespace ()
 
boolean isNetworkingEnabled ()
 
boolean makeNetworkingExceptionsWarnings ()
 

Detailed Description

Configuration wrapper class.

The config.yml file used by the CommandAPI is only ever read from, nothing is ever written to it. That's why there's only getter methods.

Constructor & Destructor Documentation

◆ InternalConfig()

dev.jorel.commandapi.InternalConfig.InternalConfig ( CommandAPIConfig<?>  config)

Creates an InternalConfig from a CommandAPIConfig.

Parameters
configThe configuration to use to set up this internal configuration

Member Function Documentation

◆ getDispatcherFile()

File dev.jorel.commandapi.InternalConfig.getDispatcherFile ( )
Returns
The File which should be used to create a JSON representation of Brigadier's command tree

◆ getMissingImplementationMessage()

String dev.jorel.commandapi.InternalConfig.getMissingImplementationMessage ( )
Returns
The message to display if a command executor does not have an implementation for a given type

◆ getNamespace()

String dev.jorel.commandapi.InternalConfig.getNamespace ( )
Returns
The default namespace used to register commands

◆ hasSilentLogs()

boolean dev.jorel.commandapi.InternalConfig.hasSilentLogs ( )
Returns
Whether silent logs is enabled

◆ hasVerboseOutput()

boolean dev.jorel.commandapi.InternalConfig.hasVerboseOutput ( )
Returns
Whether verbose output is enabled

◆ isNetworkingEnabled()

boolean dev.jorel.commandapi.InternalConfig.isNetworkingEnabled ( )
Returns
Whether networking should be enabled

◆ makeNetworkingExceptionsWarnings()

boolean dev.jorel.commandapi.InternalConfig.makeNetworkingExceptionsWarnings ( )
Returns
Whether networking exceptions are logged as warnings