Package dev.jorel.commandapi.nms
Class NMS_Common
java.lang.Object
dev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
dev.jorel.commandapi.nms.NMS_Common
- All Implemented Interfaces:
CommandAPIPlatform<Argument<?>,,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> NMS<net.minecraft.commands.CommandSourceStack>
- Direct Known Subclasses:
NMS_CommonWithFunctions
public abstract class NMS_Common
extends CommandAPIBukkit<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 TypeMethodDescriptionfinal com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntity(ArgumentSubType subType) abstract com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> abstract com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreholder(ArgumentSubType subType) abstract com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec2(boolean centerPosition) final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3(boolean centerPosition) abstract String[]abstract Stringconvert(ParticleData<?> particle) abstract Stringconvert(org.bukkit.inventory.ItemStack is) final Stringconvert(org.bukkit.potion.PotionEffectType potion) final Stringconvert(org.bukkit.Sound sound) abstract CommandRegistrationStrategy<net.minecraft.commands.CommandSourceStack> abstract voidcreateDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) abstract org.bukkit.help.HelpTopicgenerateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) abstract org.bukkit.advancement.AdvancementgetAdvancement(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) net.kyori.adventure.text.ComponentgetAdventureChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract net.kyori.adventure.text.format.NamedTextColorgetAdventureChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final floatgetAngle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final EnumSet<org.bukkit.Axis> getAxis(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.block.data.BlockDatagetBlockState(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract net.minecraft.commands.CommandSourceStackgetBrigadierSourceFromCommandSender(AbstractCommandSender<? extends org.bukkit.command.CommandSender> sender) net.md_5.bungee.api.chat.BaseComponent[]getChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.ChatColorgetChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final net.md_5.bungee.api.chat.BaseComponent[]getChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final BukkitCommandSender<? extends org.bukkit.command.CommandSender> getCommandSenderFromCommandSource(net.minecraft.commands.CommandSourceStack css) abstract org.bukkit.WorldgetDimension(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.enchantments.EnchantmentgetEnchantment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.entity.EntityTypegetEntityType(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract FloatRangegetFloatRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract FunctionWrapper[]getFunction(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract SimpleFunctionWrappergetFunction(org.bukkit.NamespacedKey key) abstract Set<org.bukkit.NamespacedKey> abstract IntegerRangegetIntRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.inventory.ItemStackgetItemStack(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract Location2DgetLocation2DBlock(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) abstract org.bukkit.LocationgetLocationBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.LocationgetLocationPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract org.bukkit.loot.LootTablegetLootTable(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final MathOperationgetMathOperation(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) final <NBTContainer>
ObjectgetNBTCompound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, Function<Object, NBTContainer> nbtContainerConstructor) org.bukkit.scoreboard.ObjectivegetObjective(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final StringgetObjectiveCriteria(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.OfflinePlayergetOfflinePlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final org.bukkit.entity.PlayergetPlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract ObjectgetPotionEffect(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) abstract org.bukkit.inventory.RecipegetRecipe(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final RotationgetRotation(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract ScoreboardSlotgetScoreboardSlot(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) getScoreHolderSingle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract BukkitCommandSender<? extends org.bukkit.command.CommandSender> getSenderForCommand(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, boolean isNative) abstract org.bukkit.command.SimpleCommandMapabstract ObjectgetSound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) abstract com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack> getSuggestionProvider(SuggestionProviders provider) abstract SimpleFunctionWrapper[]getTag(org.bukkit.NamespacedKey key) abstract Set<org.bukkit.NamespacedKey> getTags()org.bukkit.scoreboard.TeamgetTeam(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final intgetTime(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) final UUIDgetUUID(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) abstract voidMethods inherited from class dev.jorel.commandapi.CommandAPIBukkit
failWithAdventureComponent, failWithBaseComponents, get, getBrigadierDispatcher, getCommandRegistrationStrategy, 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_Common
public NMS_Common()
-
-
Method Details
-
_ArgumentAngle
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAngle() -
_ArgumentAxis
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAxis() -
_ArgumentBlockPredicate
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockPredicate() -
_ArgumentBlockState
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockState() -
_ArgumentChat
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChat() -
_ArgumentChatComponent
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatComponent() -
_ArgumentChatFormat
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatFormat() -
_ArgumentDimension
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentDimension() -
_ArgumentEnchantment
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEnchantment() -
_ArgumentEntity
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntity(ArgumentSubType subType) -
_ArgumentEntitySummon
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntitySummon() -
_ArgumentFloatRange
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentFloatRange() -
_ArgumentIntRange
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentIntRange() -
_ArgumentItemPredicate
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemPredicate() -
_ArgumentItemStack
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemStack() -
_ArgumentMathOperation
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMathOperation() -
_ArgumentMinecraftKeyRegistered
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMinecraftKeyRegistered() -
_ArgumentMobEffect
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMobEffect() -
_ArgumentNBTCompound
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentNBTCompound() -
_ArgumentParticle
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentParticle() -
_ArgumentPosition
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition() -
_ArgumentPosition2D
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition2D() -
_ArgumentProfile
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentProfile() -
_ArgumentRotation
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentRotation() -
_ArgumentScoreboardCriteria
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardCriteria() -
_ArgumentScoreboardObjective
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardObjective() -
_ArgumentScoreboardSlot
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardSlot() -
_ArgumentScoreboardTeam
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardTeam() -
_ArgumentScoreholder
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreholder(ArgumentSubType subType) -
_ArgumentSyntheticBiome
public abstract com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentSyntheticBiome() -
_ArgumentTag
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTag() -
_ArgumentTime
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTime() -
_ArgumentUUID
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentUUID() -
_ArgumentVec2
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec2(boolean centerPosition) -
_ArgumentVec3
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3(boolean centerPosition) -
getHelpMap
-
compatibleVersions
-
convert
-
convert
-
convert
-
convert
-
createDispatcherFile
public abstract 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 classCommandAPIBukkit<net.minecraft.commands.CommandSourceStack>- Throws:
IOException
-
generateHelpTopic
-
getAdvancement
public abstract org.bukkit.advancement.Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChat
public net.kyori.adventure.text.Component getAdventureChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChatColor
public abstract net.kyori.adventure.text.format.NamedTextColor getAdventureChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getAngle
public final float getAngle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getAxis
-
getBlockPredicate
-
getBlockState
public abstract org.bukkit.block.data.BlockData getBlockState(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getChat
public net.md_5.bungee.api.chat.BaseComponent[] getChat(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getChatColor
public final org.bukkit.ChatColor getChatColor(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getChatComponent
public final net.md_5.bungee.api.chat.BaseComponent[] getChatComponent(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getBrigadierSourceFromCommandSender
public abstract net.minecraft.commands.CommandSourceStack getBrigadierSourceFromCommandSender(AbstractCommandSender<? extends org.bukkit.command.CommandSender> sender) - Specified by:
getBrigadierSourceFromCommandSenderin interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getBrigadierSourceFromCommandSenderin classCommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
getCommandSenderFromCommandSource
public final BukkitCommandSender<? extends org.bukkit.command.CommandSender> getCommandSenderFromCommandSource(net.minecraft.commands.CommandSourceStack css) - Specified by:
getCommandSenderFromCommandSourcein interfaceCommandAPIPlatform<Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getCommandSenderFromCommandSourcein classCommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
getDimension
public abstract org.bukkit.World getDimension(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEnchantment
public abstract org.bukkit.enchantments.Enchantment getEnchantment(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityType
public abstract org.bukkit.entity.EntityType getEntityType(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFloatRange
public abstract FloatRange getFloatRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getFunction
public abstract FunctionWrapper[] getFunction(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunction
-
getFunctions
-
getIntRange
public abstract IntegerRange getIntRange(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getItemStack
public abstract org.bukkit.inventory.ItemStack getItemStack(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemStackPredicate
public abstract Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DBlock
public abstract Location2D getLocation2DBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 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 - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationBlock
public abstract org.bukkit.Location getLocationBlock(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationPrecise
public abstract org.bukkit.Location getLocationPrecise(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLootTable
public abstract org.bukkit.loot.LootTable getLootTable(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getMathOperation
public final MathOperation getMathOperation(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getMinecraftKey
public org.bukkit.NamespacedKey getMinecraftKey(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getNBTCompound
-
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 - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getObjectiveCriteria
-
getOfflinePlayer
public final org.bukkit.OfflinePlayer getOfflinePlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getParticle
public abstract ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getPlayer
public final org.bukkit.entity.Player getPlayer(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getPotionEffect
public abstract Object getPotionEffect(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
-
getRecipe
public abstract org.bukkit.inventory.Recipe getRecipe(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRotation
-
getScoreboardSlot
public abstract ScoreboardSlot getScoreboardSlot(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getScoreHolderMultiple
public Collection<String> getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScoreHolderSingle
-
getSenderForCommand
public abstract 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 classCommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
getSimpleCommandMap
public abstract org.bukkit.command.SimpleCommandMap getSimpleCommandMap() -
getSound
public abstract Object getSound(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key, ArgumentSubType subType) -
getSuggestionProvider
public abstract 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 classCommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
getTag
-
getTags
-
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 - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTime
public final int getTime(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> cmdCtx, String key) -
getUUID
-
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 classCommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
createCommandRegistrationStrategy
public abstract CommandRegistrationStrategy<net.minecraft.commands.CommandSourceStack> createCommandRegistrationStrategy()
-