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

Configuration wrapper class for Bukkit. More...

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

Public Member Functions

 InternalBukkitConfig (CommandAPIBukkitConfig config)
 Creates an InternalBukkitConfig from a CommandAPIBukkitConfig. More...
 
JavaPlugin getPlugin ()
 
boolean shouldHookPaperReload ()
 
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 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  config)

Creates an InternalBukkitConfig from a CommandAPIBukkitConfig.

Parameters
configThe configuration to use to set up this internal configuration

Member Function Documentation

◆ 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.InternalConfig.getNBTContainerClass ( )
inherited
Returns
The NBT Tag Compound implementation class

◆ getNBTContainerConstructor()

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

◆ getPlugin()

JavaPlugin dev.jorel.commandapi.InternalBukkitConfig.getPlugin ( )
Returns
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

◆ shouldHookPaperReload()

boolean dev.jorel.commandapi.InternalBukkitConfig.shouldHookPaperReload ( )
Returns
Whether the CommandAPI should hook into Paper's ServerResourcesReloadedEvent when available to perform the CommandAPI's custom datapack reload when /minecraft:reload is run.

◆ shouldSkipSenderProxy()

boolean dev.jorel.commandapi.InternalConfig.shouldSkipSenderProxy ( String  commandName)
inherited
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 ( )
inherited
Returns
Whether the CommandAPI should use the latest available NMS version