Package dev.jorel.commandapi.nms
Class MockNMS
java.lang.Object
dev.jorel.commandapi.nms.MockNMS
- All Implemented Interfaces:
NMS<MockCommandSource>
-
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<?> 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(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<?> 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(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<?> _ArgumentVec2(boolean centerPosition) com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3(boolean centerPosition) String[]convert(ParticleData<?> particle) convert(org.bukkit.inventory.ItemStack is) convert(org.bukkit.potion.PotionEffectType potion) convert(org.bukkit.Sound sound) voidcreateDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<MockCommandSource> brigadierDispatcher) createNativeProxyCommandSender(org.bukkit.command.CommandSender caller, org.bukkit.command.CommandSender callee, org.bukkit.Location location, org.bukkit.World world) org.bukkit.help.HelpTopicgenerateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) com.mojang.brigadier.Messageorg.bukkit.advancement.AdvancementgetAdvancement(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) floatgetAngle(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) EnumSet<org.bukkit.Axis> getAxis(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) RegistryParser<org.bukkit.block.Biome> getBiome(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) org.bukkit.block.BlockStategetBlockState(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getBrigadierSourceFromCommandSender(AbstractCommandSender<? extends org.bukkit.command.CommandSender> sender) BukkitCommandSender<? extends org.bukkit.command.CommandSender> org.bukkit.WorldgetDimension(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getDoubleRange(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) org.bukkit.enchantments.EnchantmentgetEnchantment(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getEntitySelector(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) org.bukkit.entity.EntityTypegetEntityType(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getFunction(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getFunction(org.bukkit.NamespacedKey key) Set<org.bukkit.NamespacedKey> getIntRange(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) org.bukkit.inventory.ItemStackgetItemStack(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getLocation2DBlock(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) org.bukkit.LocationgetLocationBlock(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String str) org.bukkit.LocationgetLocationPrecise(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String str) org.bukkit.loot.LootTablegetLootTable(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getMathOperation(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) org.bukkit.NamespacedKeygetMinecraftKey(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) <T> T<NBTContainer>
ObjectgetNBTCompound(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key, Function<Object, NBTContainer> nbtContainerConstructor) org.bukkit.scoreboard.ObjectivegetObjective(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getObjectiveCriteria(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) RegistryParser<org.bukkit.potion.PotionEffectType> getPotionEffect(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) <T extends org.bukkit.inventory.Recipe>
TgetRecipe(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key, BiFunction<org.bukkit.NamespacedKey, org.bukkit.inventory.Recipe, T> result) getRotation(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getScoreboardSlot(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getScoreHolderSingle(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) BukkitCommandSender<? extends org.bukkit.command.CommandSender> getSenderForCommand(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, boolean forceNative) org.bukkit.command.SimpleCommandMapRegistryParser<org.bukkit.Sound> getSound(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) com.mojang.brigadier.suggestion.SuggestionProvider<MockCommandSource> getSuggestionProvider(SuggestionProviders suggestionProvider) getTag(org.bukkit.NamespacedKey key) Set<org.bukkit.NamespacedKey> getTags()org.bukkit.scoreboard.TeamgetTeam(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) intgetTime(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) getUUID(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) org.bukkit.Worldvoid
-
Constructor Details
-
MockNMS
public MockNMS()
-
-
Method Details
-
getSenderForCommand
public BukkitCommandSender<? extends org.bukkit.command.CommandSender> getSenderForCommand(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, boolean forceNative) - Specified by:
getSenderForCommandin interfaceNMS<MockCommandSource>
-
getCommandSenderFromCommandSource
public BukkitCommandSender<? extends org.bukkit.command.CommandSender> getCommandSenderFromCommandSource(MockCommandSource css) - Specified by:
getCommandSenderFromCommandSourcein interfaceNMS<MockCommandSource>
-
getBrigadierSourceFromCommandSender
public MockCommandSource getBrigadierSourceFromCommandSender(AbstractCommandSender<? extends org.bukkit.command.CommandSender> sender) - Specified by:
getBrigadierSourceFromCommandSenderin interfaceNMS<MockCommandSource>
-
createNativeProxyCommandSender
public NativeProxyCommandSender createNativeProxyCommandSender(org.bukkit.command.CommandSender caller, org.bukkit.command.CommandSender callee, org.bukkit.Location location, org.bukkit.World world) - Specified by:
createNativeProxyCommandSenderin interfaceNMS<MockCommandSource>
-
generateMessageFromJson
- Specified by:
generateMessageFromJsonin interfaceNMS<MockCommandSource>
-
_ArgumentEntity
- Specified by:
_ArgumentEntityin interfaceNMS<MockCommandSource>
-
getEntitySelector
public EntitySelectorParser getEntitySelector(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getEntitySelectorin interfaceNMS<MockCommandSource>
-
_ArgumentIntRange
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentIntRange()- Specified by:
_ArgumentIntRangein interfaceNMS<MockCommandSource>
-
getIntRange
public IntegerRange getIntRange(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getIntRangein interfaceNMS<MockCommandSource>
-
_ArgumentProfile
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentProfile()- Specified by:
_ArgumentProfilein interfaceNMS<MockCommandSource>
-
_ArgumentAdvancement
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAdvancement()- Specified by:
_ArgumentAdvancementin interfaceNMS<MockCommandSource>
-
_ArgumentAngle
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAngle()- Specified by:
_ArgumentAnglein interfaceNMS<MockCommandSource>
-
_ArgumentAxis
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAxis()- Specified by:
_ArgumentAxisin interfaceNMS<MockCommandSource>
-
_ArgumentBlockPredicate
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockPredicate()- Specified by:
_ArgumentBlockPredicatein interfaceNMS<MockCommandSource>
-
_ArgumentBlockState
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockState()- Specified by:
_ArgumentBlockStatein interfaceNMS<MockCommandSource>
-
_ArgumentChat
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChat()- Specified by:
_ArgumentChatin interfaceNMS<MockCommandSource>
-
_ArgumentChatComponent
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatComponent()- Specified by:
_ArgumentChatComponentin interfaceNMS<MockCommandSource>
-
_ArgumentChatFormat
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatFormat()- Specified by:
_ArgumentChatFormatin interfaceNMS<MockCommandSource>
-
_ArgumentDimension
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentDimension()- Specified by:
_ArgumentDimensionin interfaceNMS<MockCommandSource>
-
_ArgumentEnchantment
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEnchantment()- Specified by:
_ArgumentEnchantmentin interfaceNMS<MockCommandSource>
-
_ArgumentEntitySummon
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntitySummon()- Specified by:
_ArgumentEntitySummonin interfaceNMS<MockCommandSource>
-
_ArgumentFloatRange
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentFloatRange()- Specified by:
_ArgumentFloatRangein interfaceNMS<MockCommandSource>
-
_ArgumentItemPredicate
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemPredicate()- Specified by:
_ArgumentItemPredicatein interfaceNMS<MockCommandSource>
-
_ArgumentItemStack
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemStack()- Specified by:
_ArgumentItemStackin interfaceNMS<MockCommandSource>
-
_ArgumentMathOperation
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMathOperation()- Specified by:
_ArgumentMathOperationin interfaceNMS<MockCommandSource>
-
_ArgumentMinecraftKeyRegistered
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMinecraftKeyRegistered()- Specified by:
_ArgumentMinecraftKeyRegisteredin interfaceNMS<MockCommandSource>
-
_ArgumentMobEffect
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMobEffect()- Specified by:
_ArgumentMobEffectin interfaceNMS<MockCommandSource>
-
_ArgumentNBTCompound
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentNBTCompound()- Specified by:
_ArgumentNBTCompoundin interfaceNMS<MockCommandSource>
-
_ArgumentParticle
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentParticle()- Specified by:
_ArgumentParticlein interfaceNMS<MockCommandSource>
-
_ArgumentPosition
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition()- Specified by:
_ArgumentPositionin interfaceNMS<MockCommandSource>
-
_ArgumentPosition2D
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition2D()- Specified by:
_ArgumentPosition2Din interfaceNMS<MockCommandSource>
-
_ArgumentRecipe
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentRecipe()- Specified by:
_ArgumentRecipein interfaceNMS<MockCommandSource>
-
_ArgumentRotation
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentRotation()- Specified by:
_ArgumentRotationin interfaceNMS<MockCommandSource>
-
_ArgumentScoreboardCriteria
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardCriteria()- Specified by:
_ArgumentScoreboardCriteriain interfaceNMS<MockCommandSource>
-
_ArgumentScoreboardObjective
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardObjective()- Specified by:
_ArgumentScoreboardObjectivein interfaceNMS<MockCommandSource>
-
_ArgumentScoreboardSlot
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardSlot()- Specified by:
_ArgumentScoreboardSlotin interfaceNMS<MockCommandSource>
-
_ArgumentScoreboardTeam
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardTeam()- Specified by:
_ArgumentScoreboardTeamin interfaceNMS<MockCommandSource>
-
_ArgumentScoreholder
- Specified by:
_ArgumentScoreholderin interfaceNMS<MockCommandSource>
-
_ArgumentTag
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTag()- Specified by:
_ArgumentTagin interfaceNMS<MockCommandSource>
-
_ArgumentTime
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTime()- Specified by:
_ArgumentTimein interfaceNMS<MockCommandSource>
-
_ArgumentUUID
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentUUID()- Specified by:
_ArgumentUUIDin interfaceNMS<MockCommandSource>
-
_ArgumentVec2
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec2(boolean centerPosition) - Specified by:
_ArgumentVec2in interfaceNMS<MockCommandSource>
-
_ArgumentVec3
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3(boolean centerPosition) - Specified by:
_ArgumentVec3in interfaceNMS<MockCommandSource>
-
_ArgumentSyntheticBiome
public com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentSyntheticBiome()- Specified by:
_ArgumentSyntheticBiomein interfaceNMS<MockCommandSource>
-
compatibleVersions
- Specified by:
compatibleVersionsin interfaceNMS<MockCommandSource>
-
convert
- Specified by:
convertin interfaceNMS<MockCommandSource>
-
convert
- Specified by:
convertin interfaceNMS<MockCommandSource>
-
convert
- Specified by:
convertin interfaceNMS<MockCommandSource>
-
convert
- Specified by:
convertin interfaceNMS<MockCommandSource>
-
getAdvancement
public org.bukkit.advancement.Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getAdvancementin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAngle
public float getAngle(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getAnglein interfaceNMS<MockCommandSource>
-
getAxis
public EnumSet<org.bukkit.Axis> getAxis(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getAxisin interfaceNMS<MockCommandSource>
-
getBiome
public RegistryParser<org.bukkit.block.Biome> getBiome(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getBiomein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockPredicate
public Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getBlockPredicatein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockState
public org.bukkit.block.BlockState getBlockState(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getBlockStatein interfaceNMS<MockCommandSource>
-
getDimension
public org.bukkit.World getDimension(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getDimensionin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEnchantment
public org.bukkit.enchantments.Enchantment getEnchantment(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEnchantmentin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityType
public org.bukkit.entity.EntityType getEntityType(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getEntityTypein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getDoubleRange
public DoubleRange getDoubleRange(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getDoubleRangein interfaceNMS<MockCommandSource>
-
getFunction
public FunctionWrapper[] getFunction(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getFunctionin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunction
- Specified by:
getFunctionin interfaceNMS<MockCommandSource>
-
getFunctions
- Specified by:
getFunctionsin interfaceNMS<MockCommandSource>
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getItemStackin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemStackPredicate
public Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getItemStackPredicatein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DBlock
public Location2D getLocation2DBlock(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocation2DBlockin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DPrecise
public Location2D getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocation2DPrecisein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationBlock
public org.bukkit.Location getLocationBlock(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String str) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocationBlockin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationPrecise
public org.bukkit.Location getLocationPrecise(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String str) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getLocationPrecisein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLootTable
public org.bukkit.loot.LootTable getLootTable(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getLootTablein interfaceNMS<MockCommandSource>
-
getMathOperation
public MathOperation getMathOperation(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getMathOperationin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getMinecraftKey
public org.bukkit.NamespacedKey getMinecraftKey(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getMinecraftKeyin interfaceNMS<MockCommandSource>
-
getNBTCompound
public <NBTContainer> Object getNBTCompound(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key, Function<Object, NBTContainer> nbtContainerConstructor) - Specified by:
getNBTCompoundin interfaceNMS<MockCommandSource>
-
getObjective
public org.bukkit.scoreboard.Objective getObjective(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws IllegalArgumentException, com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getObjectivein interfaceNMS<MockCommandSource>- Throws:
IllegalArgumentExceptioncom.mojang.brigadier.exceptions.CommandSyntaxException
-
getObjectiveCriteria
public String getObjectiveCriteria(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getObjectiveCriteriain interfaceNMS<MockCommandSource>
-
getParticle
public ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getParticlein interfaceNMS<MockCommandSource>
-
getPotionEffect
public RegistryParser<org.bukkit.potion.PotionEffectType> getPotionEffect(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getPotionEffectin interfaceNMS<MockCommandSource>
-
getRecipe
public <T extends org.bukkit.inventory.Recipe> T getRecipe(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key, BiFunction<org.bukkit.NamespacedKey, org.bukkit.inventory.Recipe, throws com.mojang.brigadier.exceptions.CommandSyntaxExceptionT> result) - Specified by:
getRecipein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRotation
public Rotation getRotation(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getRotationin interfaceNMS<MockCommandSource>
-
getScoreboardSlot
public ScoreboardSlot getScoreboardSlot(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getScoreboardSlotin interfaceNMS<MockCommandSource>
-
getScoreHolderMultiple
public Collection<String> getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getScoreHolderMultiplein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScoreHolderSingle
public String getScoreHolderSingle(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getScoreHolderSinglein interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTeam
public org.bukkit.scoreboard.Team getTeam(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getTeamin interfaceNMS<MockCommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTime
public int getTime(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getTimein interfaceNMS<MockCommandSource>
-
getUUID
public UUID getUUID(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getUUIDin interfaceNMS<MockCommandSource>
-
getWorldForCSS
- Specified by:
getWorldForCSSin interfaceNMS<MockCommandSource>
-
getSimpleCommandMap
public org.bukkit.command.SimpleCommandMap getSimpleCommandMap()- Specified by:
getSimpleCommandMapin interfaceNMS<MockCommandSource>
-
getSound
public RegistryParser<org.bukkit.Sound> getSound(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) - Specified by:
getSoundin interfaceNMS<MockCommandSource>
-
getSuggestionProvider
public com.mojang.brigadier.suggestion.SuggestionProvider<MockCommandSource> getSuggestionProvider(SuggestionProviders suggestionProvider) - Specified by:
getSuggestionProviderin interfaceNMS<MockCommandSource>
-
getTag
- Specified by:
getTagin interfaceNMS<MockCommandSource>
-
getTags
- Specified by:
getTagsin interfaceNMS<MockCommandSource>
-
createDispatcherFile
public void createDispatcherFile(File file, com.mojang.brigadier.CommandDispatcher<MockCommandSource> brigadierDispatcher) throws IOException - Specified by:
createDispatcherFilein interfaceNMS<MockCommandSource>- Throws:
IOException
-
getMinecraftServer
public <T> T getMinecraftServer()- Specified by:
getMinecraftServerin interfaceNMS<MockCommandSource>
-
reloadDataPacks
public void reloadDataPacks()- Specified by:
reloadDataPacksin interfaceNMS<MockCommandSource>
-
generateHelpTopic
public org.bukkit.help.HelpTopic generateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) - Specified by:
generateHelpTopicin interfaceNMS<MockCommandSource>
-
getHelpMap
- Specified by:
getHelpMapin interfaceNMS<MockCommandSource>
-