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

Configuration wrapper class for Bukkit. More...

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

Public Member Functions

 InternalBukkitConfig (CommandAPIBukkitConfig<? extends CommandAPIBukkitConfig<?> > config)
 Creates an InternalBukkitConfig from a CommandAPIBukkitConfig. More...
 
String getPluginName ()
 
boolean fallbackToLatestNMS ()
 
boolean skipReloadDatapacks ()
 
boolean shouldSkipSenderProxy (String commandName)
 
Class<?> getNBTContainerClass ()
 
Function< Object, ?> getNBTContainerConstructor ()
 
void lateInitializeNBT (Class<?> nbtContainerClass, Function< Object, ?> nbtContainerConstructor)
 
boolean makeNetworkingExceptionsWarnings ()
 
boolean hasVerboseOutput ()
 
boolean hasSilentLogs ()
 
String getMissingImplementationMessage ()
 
File getDispatcherFile ()
 
String getNamespace ()
 
boolean isNetworkingEnabled ()
 

Detailed Description

Configuration wrapper class for Bukkit.

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

◆ InternalBukkitConfig()

dev.jorel.commandapi.InternalBukkitConfig.InternalBukkitConfig ( CommandAPIBukkitConfig<? extends CommandAPIBukkitConfig<?> >  config)

Creates an InternalBukkitConfig from a CommandAPIBukkitConfig.

Parameters
configThe configuration to use to set up this internal configuration

Member Function Documentation

◆ fallbackToLatestNMS()

boolean dev.jorel.commandapi.InternalBukkitConfig.fallbackToLatestNMS ( )
Returns
Whether the CommandAPI should fall back to the latest version if no specific implementation for the current version was found

◆ getDispatcherFile()

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

◆ getMissingImplementationMessage()

String dev.jorel.commandapi.InternalConfig.getMissingImplementationMessage ( )
inherited
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 ( )
inherited
Returns
The default namespace used to register commands

◆ getNBTContainerClass()

Class<?> dev.jorel.commandapi.InternalBukkitConfig.getNBTContainerClass ( )
Returns
The NBT Tag Compound implementation class

◆ getNBTContainerConstructor()

Function< Object, ?> dev.jorel.commandapi.InternalBukkitConfig.getNBTContainerConstructor ( )
Returns
A function that takes in an Object (NMS NBTTagCompound) and returns an implementation of an NBT Tag Compound

◆ getPluginName()

String dev.jorel.commandapi.InternalBukkitConfig.getPluginName ( )
Returns
The name of the JavaPlugin that is loading the CommandAPI

◆ hasSilentLogs()

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

◆ hasVerboseOutput()

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

◆ isNetworkingEnabled()

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

◆ makeNetworkingExceptionsWarnings()

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

◆ shouldSkipSenderProxy()

boolean dev.jorel.commandapi.InternalBukkitConfig.shouldSkipSenderProxy ( String  commandName)
Parameters
commandNameA command where sender proxying should be skipped
Returns
Whether sender proxying should be skipped for a given command

◆ skipReloadDatapacks()

boolean dev.jorel.commandapi.InternalBukkitConfig.skipReloadDatapacks ( )
Returns
Whether the CommandAPI should skip reloading datapacks when the server has finished loading