CommandAPI 9.4.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 ()
 
boolean shouldUseLatestNMSVersion ()
 
String getMissingImplementationMessage ()
 
File getDispatcherFile ()
 
boolean shouldSkipSenderProxy (String commandName)
 
Class<?> getNBTContainerClass ()
 
Function< Object, ?> getNBTContainerConstructor ()
 
void lateInitializeNBT (Class<?> nbtContainerClass, Function< Object, ?> nbtContainerConstructor)
 
String getNamespace ()
 

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

◆ getNBTContainerClass()

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

◆ getNBTContainerConstructor()

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

◆ 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

◆ shouldSkipSenderProxy()

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

◆ shouldUseLatestNMSVersion()

boolean dev.jorel.commandapi.InternalConfig.shouldUseLatestNMSVersion ( )
Returns
Whether the CommandAPI should use the latest available NMS version