Package dev.jorel.commandapi.nms
Class NMS_1_17_Common
java.lang.Object
dev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
dev.jorel.commandapi.nms.NMS_Common
dev.jorel.commandapi.nms.NMS_1_17_Common
- All Implemented Interfaces:
CommandAPIPlatform<Argument<?>,,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> NMS<net.minecraft.commands.CommandSourceStack>
NMS implementation for Minecraft 1.17 and 1.17.1
SpecialSource compiles MinecraftServer.resources (used in reloadDataPacks)
to two different fields (aC or aB) for 1.17 and 1.17.1 respectively. This
common implementation is built those two ways by the corresponding modules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>_ArgumentEntity(ArgumentSubType subType) com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>com.mojang.brigadier.arguments.ArgumentType<?>abstract String[]convert(ParticleData<?> particle) convert(org.bukkit.inventory.ItemStack is) voidcreateDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) org.bukkit.help.HelpTopicgenerateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) com.mojang.brigadier.Messageorg.bukkit.advancement.AdvancementgetAdvancement(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) net.kyori.adventure.text.format.NamedTextColorgetAdventureChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) net.kyori.adventure.text.ComponentgetAdventureChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getBiome(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) Predicate<org.bukkit.block.Block>getBlockPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.block.data.BlockDatagetBlockState(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) net.minecraft.commands.CommandSourceStackgetBrigadierSourceFromCommandSender(AbstractCommandSender<? extends org.bukkit.command.CommandSender> senderWrapper) final org.bukkit.WorldgetDimension(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.enchantments.EnchantmentgetEnchantment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getEntitySelector(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String str, ArgumentSubType subType) org.bukkit.entity.EntityTypegetEntityType(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getFloatRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getFunction(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final SimpleFunctionWrappergetFunction(org.bukkit.NamespacedKey key) final Set<org.bukkit.NamespacedKey>getIntRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.inventory.ItemStackgetItemStack(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) Predicate<org.bukkit.inventory.ItemStack>getItemStackPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getLocation2DBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.LocationgetLocationBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.LocationgetLocationPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.loot.LootTablegetLootTable(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.NamespacedKeygetMinecraftKey(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) <T> Torg.bukkit.scoreboard.ObjectivegetObjective(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) ParticleData<?>getParticle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.potion.PotionEffectTypegetPotionEffect(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.inventory.RecipegetRecipe(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack>getScoreboardSlot(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) BukkitCommandSender<? extends org.bukkit.command.CommandSender>getSenderForCommand(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, boolean isNative) org.bukkit.command.SimpleCommandMapfinal ObjectgetSound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack>getSuggestionProvider(SuggestionProviders provider) getTag(org.bukkit.NamespacedKey key) org.bukkit.scoreboard.TeamgetTeam(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) org.bukkit.WorldgetWorldForCSS(net.minecraft.commands.CommandSourceStack css) booleanisBukkitCommandWrapper(com.mojang.brigadier.tree.CommandNode<net.minecraft.commands.CommandSourceStack> node) booleanisVanillaCommandWrapper(org.bukkit.command.Command command) abstract voidorg.bukkit.command.CommandwrapToVanillaCommandWrapper(com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> node) Methods inherited from class dev.jorel.commandapi.nms.NMS_Common
_ArgumentAngle, _ArgumentAxis, _ArgumentChat, _ArgumentChatComponent, _ArgumentChatFormat, _ArgumentDimension, _ArgumentFloatRange, _ArgumentIntRange, _ArgumentMathOperation, _ArgumentMinecraftKeyRegistered, _ArgumentNBTCompound, _ArgumentPosition, _ArgumentPosition2D, _ArgumentProfile, _ArgumentRotation, _ArgumentScoreboardCriteria, _ArgumentScoreboardObjective, _ArgumentScoreboardSlot, _ArgumentScoreboardTeam, _ArgumentScoreholder, _ArgumentTag, _ArgumentTime, _ArgumentUUID, _ArgumentVec2, _ArgumentVec3, convert, convert, getAdventureChat, getAngle, getAxis, getBrigadierDispatcher, getChat, getChatColor, getChatComponent, getCommandSenderFromCommandSource, getMathOperation, getNBTCompound, getObjectiveCriteria, getOfflinePlayer, getPlayer, getRotation, getScoreHolderMultiple, getScoreHolderSingle, getTags, getTime, getUUIDMethods inherited from class dev.jorel.commandapi.CommandAPIBukkit
failWithAdventureComponent, failWithBaseComponents, get, getConfiguration, getLogger, getPaper, newConcreteCommandAPICommand, newConcreteLiteralArgument, newConcreteMultiLiteralArgument, onDisable, onEnable, onLoad, postCommandRegistration, preCommandRegistration, registerBukkitRecipesSafely, registerCommandNode, registerPermission, unregister, unregister, updateRequirements, wrapCommandSender
-
Constructor Details
-
NMS_1_17_Common
public NMS_1_17_Common()
-
-
Method Details
-
_ArgumentBlockPredicate
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockPredicate()- Specified by:
_ArgumentBlockPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentBlockPredicatein classNMS_Common
-
_ArgumentBlockState
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockState()- Specified by:
_ArgumentBlockStatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentBlockStatein classNMS_Common
-
_ArgumentEnchantment
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEnchantment()- Specified by:
_ArgumentEnchantmentin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentEnchantmentin classNMS_Common
-
_ArgumentEntity
- Specified by:
_ArgumentEntityin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentEntityin classNMS_Common
-
_ArgumentEntitySummon
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntitySummon()- Specified by:
_ArgumentEntitySummonin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentEntitySummonin classNMS_Common
-
_ArgumentItemPredicate
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemPredicate()- Specified by:
_ArgumentItemPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentItemPredicatein classNMS_Common
-
_ArgumentItemStack
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemStack()- Specified by:
_ArgumentItemStackin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentItemStackin classNMS_Common
-
_ArgumentMobEffect
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMobEffect()- Specified by:
_ArgumentMobEffectin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentMobEffectin classNMS_Common
-
_ArgumentParticle
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentParticle()- Specified by:
_ArgumentParticlein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentParticlein classNMS_Common
-
_ArgumentSyntheticBiome
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentSyntheticBiome()- Specified by:
_ArgumentSyntheticBiomein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
_ArgumentSyntheticBiomein classNMS_Common
-
getHelpMap
- Specified by:
getHelpMapin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getHelpMapin classNMS_Common
-
compatibleVersions
- Specified by:
compatibleVersionsin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
compatibleVersionsin classNMS_Common
-
convert
- Specified by:
convertin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
convertin classNMS_Common
-
convert
- Specified by:
convertin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
convertin classNMS_Common
-
createDispatcherFile
public void createDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) throws IOException - Specified by:
createDispatcherFilein interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
createDispatcherFilein classNMS_Common- Throws:
IOException
-
generateHelpTopic
public org.bukkit.help.HelpTopic generateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) - Specified by:
generateHelpTopicin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
generateHelpTopicin classNMS_Common
-
getAdvancement
public org.bukkit.advancement.Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getAdvancementin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getAdvancementin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChatColor
public net.kyori.adventure.text.format.NamedTextColor getAdventureChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getAdventureChatColorin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getAdventureChatColorin classNMS_Common
-
getAdventureChatComponent
public net.kyori.adventure.text.Component getAdventureChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getBiome
public Object getBiome(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockPredicate
public Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getBlockPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getBlockPredicatein classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockState
public org.bukkit.block.data.BlockData getBlockState(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getBlockStatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getBlockStatein classNMS_Common
-
getResourcesDispatcher
public com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> getResourcesDispatcher()- Specified by:
getResourcesDispatcherin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getResourcesDispatcherin classNMS_Common
-
getBrigadierSourceFromCommandSender
public net.minecraft.commands.CommandSourceStack getBrigadierSourceFromCommandSender(AbstractCommandSender<? extends org.bukkit.command.CommandSender> senderWrapper) - Specified by:
getBrigadierSourceFromCommandSenderin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getBrigadierSourceFromCommandSenderin classNMS_Common
-
getEnchantment
public org.bukkit.enchantments.Enchantment getEnchantment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEnchantmentin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getEnchantmentin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getDimension
public final org.bukkit.World getDimension(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getDimensionin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getDimensionin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntitySelector
public Object getEntitySelector(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String str, ArgumentSubType subType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityType
public org.bukkit.entity.EntityType getEntityType(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEntityTypein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getEntityTypein classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFloatRange
public FloatRange getFloatRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getFloatRangein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getFloatRangein classNMS_Common
-
getFunction
public 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>- Overrides:
getFunctionin classNMS_Common
-
getFunctions
- Specified by:
getFunctionsin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Overrides:
getFunctionsin classNMS_Common
-
getIntRange
public IntegerRange getIntRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getIntRangein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getIntRangein classNMS_Common
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getItemStackin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getItemStackin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemStackPredicate
public Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getItemStackPredicatein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getItemStackPredicatein classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DBlock
public Location2D getLocation2DBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocation2DBlockin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getLocation2DBlockin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DPrecise
public Location2D getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocation2DPrecisein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Overrides:
getLocation2DPrecisein classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationBlock
public org.bukkit.Location getLocationBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocationBlockin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getLocationBlockin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationPrecise
public org.bukkit.Location getLocationPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocationPrecisein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getLocationPrecisein classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLootTable
public org.bukkit.loot.LootTable getLootTable(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getLootTablein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getLootTablein classNMS_Common
-
getMinecraftKey
public org.bukkit.NamespacedKey getMinecraftKey(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getMinecraftKeyin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Overrides:
getMinecraftKeyin classNMS_Common
-
getObjective
public org.bukkit.scoreboard.Objective getObjective(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getObjectivein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Overrides:
getObjectivein classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getParticle
public ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getParticlein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getParticlein classNMS_Common
-
getPotionEffect
public org.bukkit.potion.PotionEffectType getPotionEffect(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getPotionEffectin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getPotionEffectin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRecipe
public final org.bukkit.inventory.Recipe getRecipe(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getRecipein interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getRecipein classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScoreboardSlot
public ScoreboardSlot getScoreboardSlot(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) - Specified by:
getScoreboardSlotin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getScoreboardSlotin classNMS_Common
-
getSenderForCommand
public BukkitCommandSender<? extends org.bukkit.command.CommandSender> getSenderForCommand(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, boolean isNative) - Specified by:
getSenderForCommandin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getSenderForCommandin classNMS_Common
-
getSimpleCommandMap
public org.bukkit.command.SimpleCommandMap getSimpleCommandMap()- Specified by:
getSimpleCommandMapin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getSimpleCommandMapin classNMS_Common
-
getSound
public final Object getSound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) - Specified by:
getSoundin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getSoundin classNMS_Common
-
getSuggestionProvider
public com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack> getSuggestionProvider(SuggestionProviders provider) - Specified by:
getSuggestionProviderin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getSuggestionProviderin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getSuggestionProviderin classNMS_Common
-
getTag
- Specified by:
getTagin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getTagin classNMS_Common
-
getTeam
public org.bukkit.scoreboard.Team getTeam(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getTeamin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Overrides:
getTeamin classNMS_Common- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getWorldForCSS
public org.bukkit.World getWorldForCSS(net.minecraft.commands.CommandSourceStack css) -
isVanillaCommandWrapper
public boolean isVanillaCommandWrapper(org.bukkit.command.Command command) - Specified by:
isVanillaCommandWrapperin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
isVanillaCommandWrapperin classNMS_Common
-
wrapToVanillaCommandWrapper
public org.bukkit.command.Command wrapToVanillaCommandWrapper(com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> node) - Specified by:
wrapToVanillaCommandWrapperin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
wrapToVanillaCommandWrapperin classNMS_Common
-
isBukkitCommandWrapper
public boolean isBukkitCommandWrapper(com.mojang.brigadier.tree.CommandNode<net.minecraft.commands.CommandSourceStack> node) - Specified by:
isBukkitCommandWrapperin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
isBukkitCommandWrapperin classNMS_Common
-
reloadDataPacks
public abstract void reloadDataPacks()- Specified by:
reloadDataPacksin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
reloadDataPacksin interfaceNMS<net.minecraft.commands.CommandSourceStack>- Specified by:
reloadDataPacksin classNMS_Common
-
generateMessageFromJson
-
getMinecraftServer
public <T> T getMinecraftServer()- Specified by:
getMinecraftServerin classCommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-