Package dev.jorel.commandapi
Class MockCommandAPIPaper
- All Implemented Interfaces:
BukkitPlatform<MockCommandSource>,CommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, MockCommandSource>
An implementation of
CommandAPIPaper that is compatible with a MockBukkit testing environment.
Does not rely on any version-specific Minecraft code to (ideally) support testing in any version.-
Field Summary
Fields inherited from class dev.jorel.commandapi.CommandAPIBukkit
config, nms, plugin -
Constructor Summary
ConstructorsConstructorDescriptionMockCommandAPIPaper(InternalPaperConfig config, BundledNMS<MockCommandSource> nms) -
Method Summary
Methods inherited from class dev.jorel.commandapi.CommandAPIPaper
activePlatform, createCommandRegistrationStrategy, failWithAdventureComponent, getCommandMap, getConfiguration, getLifecycleEventOwner, getNMS, getPaper, wrapCommandSenderMethods inherited from class dev.jorel.commandapi.CommandAPIBukkit
checkDependencies, createDispatcherFile, get, getBrigadierDispatcher, getBrigadierSourceFromCommandSender, getCommandRegistrationStrategy, getCommandSenderFromCommandSource, getMessenger, getPlugin, getSenderForCommand, getSuggestionProvider, initializeNBTAPI, newConcreteCommandAPICommand, newConcreteLiteralArgument, newConcreteMultiLiteralArgument, onDisable, postCommandRegistration, preCommandRegistration, registerBukkitRecipesSafely, registerCommandNode, registerPermission, reloadDataPacks, setupMessenger, stopCommandRegistrations, unregister, unregister, updateRequirements
-
Constructor Details
-
MockCommandAPIPaper
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceBukkitPlatform<MockCommandSource>- Specified by:
onLoadin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, MockCommandSource> - Overrides:
onLoadin classCommandAPIPaper<MockCommandSource>
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, MockCommandSource> - Overrides:
onEnablein classCommandAPIPaper<MockCommandSource>
-
getLogger
- Specified by:
getLoggerin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, MockCommandSource> - Overrides:
getLoggerin classCommandAPIPaper<MockCommandSource>
-