Package dev.jorel.commandapi.nms
Class NMS_CommonWithFunctions
java.lang.Object
dev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
dev.jorel.commandapi.nms.NMS_Common
dev.jorel.commandapi.nms.NMS_CommonWithFunctions
- All Implemented Interfaces:
CommandAPIPlatform<Argument<?>,,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> NMS<net.minecraft.commands.CommandSourceStack>
Common NMS code To ensure that this code actually works across all versions
of Minecraft that this is supposed to support (1.17+), you should be
compiling this code against all of the declared Maven profiles specified in
this submodule's pom.xml file, by running the following commands:
mvn clean package -pl :commandapi-bukkit-nms-common -P Platform.Bukkit,Spigot_1_19_3_R2mvn clean package -pl :commandapi-bukkit-nms-common -P Platform.Bukkit,Spigot_1_19_R1mvn clean package -pl :commandapi-bukkit-nms-common -P Platform.Bukkit,Spigot_1_18_2_R2mvn clean package -pl :commandapi-bukkit-nms-common -P Platform.Bukkit,Spigot_1_18_R1mvn clean package -pl :commandapi-bukkit-nms-common -P Platform.Bukkit,Spigot_1_17_R1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FunctionWrapper[]getFunction(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getFunction(org.bukkit.NamespacedKey key) Set<org.bukkit.NamespacedKey> abstract SimpleFunctionWrapper[]getTag(org.bukkit.NamespacedKey key) Methods inherited from class dev.jorel.commandapi.nms.NMS_Common
_ArgumentAngle, _ArgumentAxis, _ArgumentBlockPredicate, _ArgumentBlockState, _ArgumentChat, _ArgumentChatComponent, _ArgumentChatFormat, _ArgumentDimension, _ArgumentEnchantment, _ArgumentEntity, _ArgumentEntitySummon, _ArgumentFloatRange, _ArgumentIntRange, _ArgumentItemPredicate, _ArgumentItemStack, _ArgumentMathOperation, _ArgumentMinecraftKeyRegistered, _ArgumentMobEffect, _ArgumentNBTCompound, _ArgumentParticle, _ArgumentPosition, _ArgumentPosition2D, _ArgumentProfile, _ArgumentRotation, _ArgumentScoreboardCriteria, _ArgumentScoreboardObjective, _ArgumentScoreboardSlot, _ArgumentScoreboardTeam, _ArgumentScoreholder, _ArgumentSyntheticBiome, _ArgumentTag, _ArgumentTime, _ArgumentUUID, _ArgumentVec2, _ArgumentVec3, compatibleVersions, convert, convert, convert, convert, createDispatcherFile, generateHelpTopic, getAdvancement, getAdventureChat, getAdventureChatColor, getAngle, getAxis, getBlockPredicate, getBlockState, getBrigadierDispatcher, getBrigadierSourceFromCommandSender, getChat, getChatColor, getChatComponent, getCommandSenderFromCommandSource, getDimension, getEnchantment, getEntityType, getFloatRange, getHelpMap, getIntRange, getItemStack, getItemStackPredicate, getLocation2DBlock, getLocation2DPrecise, getLocationBlock, getLocationPrecise, getLootTable, getMathOperation, getMinecraftKey, getNBTCompound, getObjective, getObjectiveCriteria, getOfflinePlayer, getParticle, getPlayer, getPotionEffect, getRecipe, getResourcesDispatcher, getRotation, getScoreboardSlot, getScoreHolderMultiple, getScoreHolderSingle, getSenderForCommand, getSimpleCommandMap, getSound, getSuggestionProvider, getTags, getTeam, getTime, getUUID, isBukkitCommandWrapper, isVanillaCommandWrapper, reloadDataPacks, wrapToVanillaCommandWrapperMethods inherited from class dev.jorel.commandapi.CommandAPIBukkit
failWithAdventureComponent, failWithBaseComponents, get, getConfiguration, getLogger, getMinecraftServer, getPaper, initializeNBTAPI, newConcreteCommandAPICommand, newConcreteLiteralArgument, newConcreteMultiLiteralArgument, onDisable, onEnable, onLoad, postCommandRegistration, preCommandRegistration, registerBukkitRecipesSafely, registerCommandNode, registerPermission, unregister, unregister, updateRequirements, wrapCommandSenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.nms.NMS
generateMessageFromJson, getAdventureChatComponent, getBiome, getEntitySelector, getWorldForCSS
-
Constructor Details
-
NMS_CommonWithFunctions
public NMS_CommonWithFunctions()
-
-
Method Details
-
getFunction
public abstract FunctionWrapper[] getFunction(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getFunctionin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getFunctionin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunction
- Specified by:
getFunctionin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getFunctionin classNMS_Common
-
getFunctions
- Specified by:
getFunctionsin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getFunctionsin classNMS_Common
-
getTag
- Specified by:
getTagin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getTagin classNMS_Common
-