Package dev.jorel.commandapi.test
Class ArgumentNMS
java.lang.Object
dev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
dev.jorel.commandapi.test.MockPlatform<net.minecraft.commands.CommandSourceStack>
dev.jorel.commandapi.test.ArgumentNMS
- All Implemented Interfaces:
dev.jorel.commandapi.CommandAPIPlatform<dev.jorel.commandapi.arguments.Argument<?>,,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> dev.jorel.commandapi.nms.NMS<net.minecraft.commands.CommandSourceStack>
- Direct Known Subclasses:
Enums
Argument related method implementations
-
Field Summary
Fields inherited from class dev.jorel.commandapi.test.MockPlatform
registry -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArgumentNMS(dev.jorel.commandapi.CommandAPIBukkit<?> baseNMS) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.arguments.ArgumentType<?> com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final 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<?> com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntity(dev.jorel.commandapi.arguments.ArgumentSubType subType) com.mojang.brigadier.arguments.ArgumentType<?> com.mojang.brigadier.arguments.ArgumentType<?> com.mojang.brigadier.arguments.ArgumentType<?> final com.mojang.brigadier.arguments.ArgumentType<?> final 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<?> 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<?> com.mojang.brigadier.arguments.ArgumentType<?> com.mojang.brigadier.arguments.ArgumentType<?> com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreholder(dev.jorel.commandapi.arguments.ArgumentSubType subType) final 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<?> _ArgumentVec2(boolean centerPosition) com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3(boolean centerPosition) com.mojang.brigadier.Messageorg.bukkit.advancement.AdvancementgetAdvancement(com.mojang.brigadier.context.CommandContext cmdCtx, String key) net.kyori.adventure.text.ComponentgetAdventureChat(com.mojang.brigadier.context.CommandContext cmdCtx, String key) net.kyori.adventure.text.format.NamedTextColorgetAdventureChatColor(com.mojang.brigadier.context.CommandContext cmdCtx, String key) net.kyori.adventure.text.ComponentgetAdventureChatComponent(com.mojang.brigadier.context.CommandContext cmdCtx, String key) floatEnumSet<org.bukkit.Axis> getBiome(com.mojang.brigadier.context.CommandContext cmdCtx, String key, dev.jorel.commandapi.arguments.ArgumentSubType subType) Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.block.data.BlockDatagetBlockState(com.mojang.brigadier.context.CommandContext cmdCtx, String key) net.md_5.bungee.api.chat.BaseComponent[]org.bukkit.ChatColorgetChatColor(com.mojang.brigadier.context.CommandContext cmdCtx, String key) net.md_5.bungee.api.chat.BaseComponent[]getChatComponent(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.WorldgetDimension(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.enchantments.EnchantmentgetEnchantment(com.mojang.brigadier.context.CommandContext cmdCtx, String key) getEntitySelector(com.mojang.brigadier.context.CommandContext cmdCtx, String key, dev.jorel.commandapi.arguments.ArgumentSubType subType, boolean allowEmpty) org.bukkit.entity.EntityTypegetEntityType(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.FloatRangegetFloatRange(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.FunctionWrapper[]getFunction(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.SimpleFunctionWrappergetFunction(org.bukkit.NamespacedKey key) Set<org.bukkit.NamespacedKey> dev.jorel.commandapi.wrappers.IntegerRangegetIntRange(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.inventory.ItemStackgetItemStack(com.mojang.brigadier.context.CommandContext cmdCtx, String key) Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.Location2DgetLocation2DBlock(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.Location2DgetLocation2DPrecise(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.LocationgetLocationBlock(com.mojang.brigadier.context.CommandContext cmdCtx, String str) final org.bukkit.LocationgetLocationPrecise(com.mojang.brigadier.context.CommandContext cmdCtx, String str) org.bukkit.loot.LootTablegetLootTable(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.MathOperationgetMathOperation(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.NamespacedKeygetMinecraftKey(com.mojang.brigadier.context.CommandContext cmdCtx, String key) <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 cmdCtx, String key) getObjectiveCriteria(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.OfflinePlayergetOfflinePlayer(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext cmdCtx, String key) org.bukkit.entity.PlayergetPotionEffect(com.mojang.brigadier.context.CommandContext cmdCtx, String key, dev.jorel.commandapi.arguments.ArgumentSubType subType) org.bukkit.inventory.Recipedev.jorel.commandapi.wrappers.RotationgetRotation(com.mojang.brigadier.context.CommandContext cmdCtx, String key) dev.jorel.commandapi.wrappers.ScoreboardSlotgetScoreboardSlot(com.mojang.brigadier.context.CommandContext cmdCtx, String key) getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext cmdCtx, String key) getScoreHolderSingle(com.mojang.brigadier.context.CommandContext cmdCtx, String key) getSound(com.mojang.brigadier.context.CommandContext cmdCtx, String key, dev.jorel.commandapi.arguments.ArgumentSubType subType) com.mojang.brigadier.suggestion.SuggestionProvidergetSuggestionProvider(dev.jorel.commandapi.arguments.SuggestionProviders provider) dev.jorel.commandapi.wrappers.SimpleFunctionWrapper[]getTag(org.bukkit.NamespacedKey key) Set<org.bukkit.NamespacedKey> getTags()org.bukkit.scoreboard.TeamintMethods inherited from class dev.jorel.commandapi.test.MockPlatform
addAdvancement, addFunction, addTag, addToRegistry, convert, convert, convert, convert, forceGetArgument, getAllItemNames, getAllRecipes, getBiomes, getBrigadierDispatcher, getBukkitPotionEffectTypeName, getCraftPlayerClass, getEnchantments, getEntityTypes, getField, getField, getFieldAs, getFieldAs, getInstance, getItemFactory, getLootTables, getNMSParticleNameFromBukkit, getPotionEffects, getRecipes, getRegistry, getResourcesDispatcher, getSenderForCommand, getSounds, popFunctionCallbackResult, reloadDataPacks, setField, setField, unloadMethods inherited from class dev.jorel.commandapi.CommandAPIBukkit
createDispatcherFile, failWithAdventureComponent, failWithBaseComponents, get, getBrigadierSourceFromCommandSender, getCommandSenderFromCommandSource, 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
compatibleVersions, generateHelpTopic, getHelpMap, getSimpleCommandMap, getWorldForCSS, isBukkitCommandWrapper, isVanillaCommandWrapper, wrapToVanillaCommandWrapper
-
Constructor Details
-
ArgumentNMS
protected ArgumentNMS(dev.jorel.commandapi.CommandAPIBukkit<?> baseNMS)
-
-
Method Details
-
_ArgumentAngle
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAngle() -
_ArgumentAxis
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAxis() -
_ArgumentBlockPredicate
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockPredicate() -
_ArgumentBlockState
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockState() -
_ArgumentChat
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChat() -
_ArgumentChatComponent
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatComponent() -
_ArgumentChatFormat
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatFormat() -
_ArgumentDimension
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentDimension() -
_ArgumentEnchantment
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEnchantment() -
_ArgumentEntity
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntity(dev.jorel.commandapi.arguments.ArgumentSubType subType) -
_ArgumentEntitySummon
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntitySummon() -
_ArgumentFloatRange
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentFloatRange() -
_ArgumentIntRange
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentIntRange() -
_ArgumentItemPredicate
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemPredicate() -
_ArgumentItemStack
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemStack() -
_ArgumentMathOperation
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMathOperation() -
_ArgumentMinecraftKeyRegistered
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMinecraftKeyRegistered() -
_ArgumentMobEffect
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMobEffect() -
_ArgumentNBTCompound
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentNBTCompound() -
_ArgumentParticle
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentParticle() -
_ArgumentPosition
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition() -
_ArgumentPosition2D
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition2D() -
_ArgumentProfile
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentProfile() -
_ArgumentRotation
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentRotation() -
_ArgumentScoreboardCriteria
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardCriteria() -
_ArgumentScoreboardObjective
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardObjective() -
_ArgumentScoreboardSlot
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardSlot() -
_ArgumentScoreboardTeam
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardTeam() -
_ArgumentScoreholder
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreholder(dev.jorel.commandapi.arguments.ArgumentSubType subType) -
_ArgumentSyntheticBiome
public final com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentSyntheticBiome() -
_ArgumentTag
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTag() -
_ArgumentTime
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTime() -
_ArgumentUUID
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentUUID() -
_ArgumentVec2
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec2(boolean centerPosition) -
_ArgumentVec3
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3(boolean centerPosition) -
generateMessageFromJson
-
getAdvancement
public org.bukkit.advancement.Advancement getAdvancement(com.mojang.brigadier.context.CommandContext 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 cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChatColor
public net.kyori.adventure.text.format.NamedTextColor getAdventureChatColor(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getAdventureChatComponent
public net.kyori.adventure.text.Component getAdventureChatComponent(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getAngle
-
getAxis
-
getBiome
-
getBlockPredicate
-
getBlockState
public org.bukkit.block.data.BlockData getBlockState(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getChat
public net.md_5.bungee.api.chat.BaseComponent[] getChat(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getChatColor
public org.bukkit.ChatColor getChatColor(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getChatComponent
public net.md_5.bungee.api.chat.BaseComponent[] getChatComponent(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getDimension
public org.bukkit.World getDimension(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEnchantment
public org.bukkit.enchantments.Enchantment getEnchantment(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntitySelector
-
getEntityType
public org.bukkit.entity.EntityType getEntityType(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFloatRange
public dev.jorel.commandapi.wrappers.FloatRange getFloatRange(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getFunction
public dev.jorel.commandapi.wrappers.FunctionWrapper[] getFunction(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunction
public dev.jorel.commandapi.wrappers.SimpleFunctionWrapper getFunction(org.bukkit.NamespacedKey key) -
getFunctions
-
getIntRange
public dev.jorel.commandapi.wrappers.IntegerRange getIntRange(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getItemStack
public org.bukkit.inventory.ItemStack getItemStack(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemStackPredicate
-
getLocation2DBlock
public dev.jorel.commandapi.wrappers.Location2D getLocation2DBlock(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DPrecise
public dev.jorel.commandapi.wrappers.Location2D getLocation2DPrecise(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationBlock
public org.bukkit.Location getLocationBlock(com.mojang.brigadier.context.CommandContext cmdCtx, String str) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationPrecise
public final org.bukkit.Location getLocationPrecise(com.mojang.brigadier.context.CommandContext cmdCtx, String str) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLootTable
public org.bukkit.loot.LootTable getLootTable(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getMathOperation
public dev.jorel.commandapi.wrappers.MathOperation getMathOperation(com.mojang.brigadier.context.CommandContext 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 cmdCtx, String key) -
getNBTCompound
-
getObjective
public org.bukkit.scoreboard.Objective getObjective(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws IllegalArgumentException, com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
IllegalArgumentExceptioncom.mojang.brigadier.exceptions.CommandSyntaxException
-
getObjectiveCriteria
-
getOfflinePlayer
public org.bukkit.OfflinePlayer getOfflinePlayer(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getParticle
public dev.jorel.commandapi.wrappers.ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getPlayer
public org.bukkit.entity.Player getPlayer(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getPotionEffect
-
getRecipe
public org.bukkit.inventory.Recipe getRecipe(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRotation
public dev.jorel.commandapi.wrappers.Rotation getRotation(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getScoreboardSlot
public dev.jorel.commandapi.wrappers.ScoreboardSlot getScoreboardSlot(com.mojang.brigadier.context.CommandContext cmdCtx, String key) -
getScoreHolderMultiple
public Collection<String> getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScoreHolderSingle
-
getSound
-
getSuggestionProvider
public com.mojang.brigadier.suggestion.SuggestionProvider getSuggestionProvider(dev.jorel.commandapi.arguments.SuggestionProviders provider) - Specified by:
getSuggestionProviderin interfacedev.jorel.commandapi.CommandAPIPlatform<dev.jorel.commandapi.arguments.Argument<?>,org.bukkit.command.CommandSender, net.minecraft.commands.CommandSourceStack> - Specified by:
getSuggestionProviderin interfacedev.jorel.commandapi.nms.NMS<net.minecraft.commands.CommandSourceStack>- Specified by:
getSuggestionProviderin classdev.jorel.commandapi.CommandAPIBukkit<net.minecraft.commands.CommandSourceStack>
-
getTag
public dev.jorel.commandapi.wrappers.SimpleFunctionWrapper[] getTag(org.bukkit.NamespacedKey key) -
getTags
-
getTeam
public org.bukkit.scoreboard.Team getTeam(com.mojang.brigadier.context.CommandContext cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTime
-
getUUID
-