Package dev.jorel.commandapi
Class MockCommandAPISpigot
- All Implemented Interfaces:
BukkitPlatform<MockCommandSource>,CommandAPIPlatform<Argument<?>,,org.bukkit.command.CommandSender, MockCommandSource> MockSpigotNMS,SpigotNMS<MockCommandSource>
public class MockCommandAPISpigot
extends CommandAPISpigot<MockCommandSource>
implements MockSpigotNMS
An implementation of
CommandAPISpigot 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
Constructors -
Method Summary
Methods inherited from class dev.jorel.commandapi.CommandAPISpigot
activePlatform, failWithBaseComponents, getCommandMap, getConfiguration, getSpigot, onEnable, wrapCommandSenderMethods inherited from class dev.jorel.commandapi.CommandAPIBukkit
checkDependencies, createDispatcherFile, get, getBrigadierDispatcher, getBrigadierSourceFromCommandSender, getCommandRegistrationStrategy, getCommandSenderFromCommandSource, getMessenger, getNMS, getPlugin, getSenderForCommand, getSuggestionProvider, initializeNBTAPI, newConcreteCommandAPICommand, newConcreteLiteralArgument, newConcreteMultiLiteralArgument, onDisable, postCommandRegistration, preCommandRegistration, registerBukkitRecipesSafely, registerCommandNode, registerPermission, reloadDataPacks, setupMessenger, stopCommandRegistrations, unregister, unregister, updateRequirementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.nms.MockSpigotNMS
getChat, getChatColor, getChatComponent, getProfile, isNullCommandSender
-
Constructor Details
-
MockCommandAPISpigot
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceBukkitPlatform<MockCommandSource>- Specified by:
onLoadin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, MockCommandSource> - Overrides:
onLoadin classCommandAPIBukkit<MockCommandSource>
-
createCommandRegistrationStrategy
- Specified by:
createCommandRegistrationStrategyin interfaceBukkitPlatform<MockCommandSource>
-
bukkitNMS
- Specified by:
bukkitNMSin interfaceSpigotNMS<MockCommandSource>
-
getLogger
- Specified by:
getLoggerin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, MockCommandSource> - Overrides:
getLoggerin classCommandAPIBukkit<MockCommandSource>
-