Package dev.jorel.commandapi.nms
Interface NMS<CommandListenerWrapper>
-
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<?> _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<?> _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[]A String array of Minecraft versions that this NMS implementation is compatible with.convert(ParticleData<?> particle) convert(org.bukkit.inventory.ItemStack is) convert(org.bukkit.potion.PotionEffectType potion) convert(org.bukkit.Sound sound) org.bukkit.help.HelpTopicgenerateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission) com.mojang.brigadier.Messageorg.bukkit.advancement.AdvancementgetAdvancement(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) net.kyori.adventure.text.ComponentgetAdventureChat(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) net.kyori.adventure.text.format.NamedTextColorgetAdventureChatColor(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) net.kyori.adventure.text.ComponentgetAdventureChatComponent(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) floatgetAngle(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) EnumSet<org.bukkit.Axis> getAxis(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getBiome(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType) Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.block.data.BlockDatagetBlockState(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) net.md_5.bungee.api.chat.BaseComponent[]getChat(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.ChatColorgetChatColor(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) net.md_5.bungee.api.chat.BaseComponent[]getChatComponent(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.WorldgetDimension(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.enchantments.EnchantmentgetEnchantment(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getEntitySelector(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType, boolean allowEmpty) org.bukkit.entity.EntityTypegetEntityType(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getFloatRange(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getFunction(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getFunction(org.bukkit.NamespacedKey key) Set<org.bukkit.NamespacedKey> getIntRange(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.inventory.ItemStackgetItemStack(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getLocation2DBlock(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.LocationgetLocationBlock(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String str) org.bukkit.LocationgetLocationPrecise(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String str) org.bukkit.loot.LootTablegetLootTable(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getMathOperation(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.NamespacedKeygetMinecraftKey(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) <NBTContainer>
ObjectgetNBTCompound(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, Function<Object, NBTContainer> nbtContainerConstructor) org.bukkit.scoreboard.ObjectivegetObjective(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getObjectiveCriteria(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.OfflinePlayergetOfflinePlayer(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.entity.PlayergetPlayer(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getPotionEffect(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType) org.bukkit.inventory.RecipegetRecipe(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getRotation(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getScoreboardSlot(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getScoreHolderSingle(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.command.SimpleCommandMapReturns the Server's internal (OBC) CommandMapgetSound(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType) com.mojang.brigadier.suggestion.SuggestionProvider<CommandListenerWrapper> getSuggestionProvider(SuggestionProviders provider) Retrieve a specific NMS implemented SuggestionProvidergetTag(org.bukkit.NamespacedKey key) Set<org.bukkit.NamespacedKey> getTags()org.bukkit.scoreboard.TeamgetTeam(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) intgetTime(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) getUUID(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) org.bukkit.WorldvoidReloads the datapacks by using the updated the commandDispatcher tree
-
Method Details
-
_ArgumentAngle
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAngle()- Returns:
- Angle argument (minecraft:angle)
-
_ArgumentAxis
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentAxis()- Returns:
- Axis argument (minecraft:swizzle)
-
_ArgumentBlockPredicate
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockPredicate()- Returns:
- Block predicate argument (minecraft:block_predicate)
-
_ArgumentBlockState
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentBlockState()- Returns:
- Block state argument (minecraft:block_state)
-
_ArgumentChat
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChat()- Returns:
- Chat argument (minecraft:message)
-
_ArgumentChatComponent
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatComponent()- Returns:
- Chat component argument (minecraft:component)
-
_ArgumentChatFormat
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentChatFormat()- Returns:
- Chat color argument (minecraft:color)
-
_ArgumentDimension
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentDimension()- Returns:
- Dimension argument (minecraft:dimension)
-
_ArgumentEnchantment
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEnchantment()- Returns:
- Enchantment argument (minecraft:item_enchantment)
-
_ArgumentEntity
- Parameters:
subType- one ofArgumentSubType.ENTITYSELECTOR_MANY_ENTITIES,ArgumentSubType.ENTITYSELECTOR_MANY_PLAYERS,ArgumentSubType.ENTITYSELECTOR_ONE_ENTITYorArgumentSubType.ENTITYSELECTOR_ONE_PLAYER- Returns:
- Entity selector argument (minecraft:entity)
-
_ArgumentEntitySummon
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntitySummon()- Returns:
- Entity type argument (minecraft:entity_summon)
-
_ArgumentFloatRange
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentFloatRange()- Returns:
- Float range argument (minecraft:float_range)
-
_ArgumentIntRange
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentIntRange()- Returns:
- Int range argument (minecraft:int_range)
-
_ArgumentItemPredicate
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemPredicate()- Returns:
- Item predicate argument (minecraft:item_predicate)
-
_ArgumentItemStack
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentItemStack()- Returns:
- Itemstack argument (minecraft:item_stack)
-
_ArgumentMathOperation
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMathOperation()- Returns:
- Math operation argument (minecraft:operation)
-
_ArgumentMinecraftKeyRegistered
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMinecraftKeyRegistered()- Returns:
- Minecraft key argument (minecraft:resource_location)
-
_ArgumentMobEffect
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentMobEffect()- Returns:
- Potion effect argument (minecraft:mob_effect)
-
_ArgumentNBTCompound
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentNBTCompound()- Returns:
- NBT compound tag argument (minecraft:nbt_compound_tag)
-
_ArgumentParticle
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentParticle()- Returns:
- Particle argument (minecraft:particle)
-
_ArgumentPosition
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition()- Returns:
- Position argument (minecraft:block_pos)
-
_ArgumentPosition2D
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentPosition2D()- Returns:
- 2D position (column) argument (minecraft:column_pos)
-
_ArgumentProfile
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentProfile()- Returns:
- Player argument (minecraft:game_profile)
-
_ArgumentRotation
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentRotation()- Returns:
- Rotation argument (minecraft:rotation)
-
_ArgumentScoreboardCriteria
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardCriteria()- Returns:
- Scoreboard objective criteria argument (minecraft:objective_criteria)
-
_ArgumentScoreboardObjective
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardObjective()- Returns:
- Scoreboard objective argument (minecraft:objective)
-
_ArgumentScoreboardSlot
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardSlot()- Returns:
- Scoreboard slot argument (minecraft:scoreboard_slot)
-
_ArgumentScoreboardTeam
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreboardTeam()- Returns:
- Scoreboard team argument (minecraft:team)
-
_ArgumentScoreholder
- Parameters:
subType- one ofArgumentSubType.SCOREHOLDER_MULTIPLEorArgumentSubType.SCOREHOLDER_SINGLE- Returns:
- Scoreholder argument (minecraft:score_holder)
-
_ArgumentTag
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTag()- Returns:
- Function argument (minecraft:function)
-
_ArgumentTime
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentTime()- Returns:
- Time argument (minecraft:time)
-
_ArgumentUUID
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentUUID()- Returns:
- UUID argument (minecraft:uuid)
-
_ArgumentVec2
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec2(boolean centerPosition) - Returns:
- Location 2D argument (precise position) (minecraft:vec2)
-
_ArgumentVec3
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3(boolean centerPosition) - Returns:
- Location argument (precise position) (minecraft:vec3)
-
_ArgumentSyntheticBiome
com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentSyntheticBiome() -
compatibleVersions
String[] compatibleVersions()A String array of Minecraft versions that this NMS implementation is compatible with. For example, ["1.14", "1.14.1", "1.14.2", "1.14.3"]. This can be found by opening a Minecraft jar file, viewing the version.json file and reading the object "name".- Returns:
- A String array of compatible Minecraft versions
-
convert
-
convert
-
convert
-
convert
-
getAdvancement
org.bukkit.advancement.Advancement getAdvancement(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChat
net.kyori.adventure.text.Component getAdventureChat(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAdventureChatColor
net.kyori.adventure.text.format.NamedTextColor getAdventureChatColor(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getAdventureChatComponent
net.kyori.adventure.text.Component getAdventureChatComponent(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getAngle
float getAngle(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getAxis
EnumSet<org.bukkit.Axis> getAxis(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getBiome
Object getBiome(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockPredicate
Predicate<org.bukkit.block.Block> getBlockPredicate(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockState
org.bukkit.block.data.BlockData getBlockState(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getChat
net.md_5.bungee.api.chat.BaseComponent[] getChat(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getChatColor
org.bukkit.ChatColor getChatColor(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getChatComponent
net.md_5.bungee.api.chat.BaseComponent[] getChatComponent(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getDimension
org.bukkit.World getDimension(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEnchantment
org.bukkit.enchantments.Enchantment getEnchantment(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntitySelector
Object getEntitySelector(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType, boolean allowEmpty) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityType
org.bukkit.entity.EntityType getEntityType(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFloatRange
FloatRange getFloatRange(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getFunction
FunctionWrapper[] getFunction(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getFunction
-
getFunctions
Set<org.bukkit.NamespacedKey> getFunctions() -
getIntRange
IntegerRange getIntRange(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getItemStack
org.bukkit.inventory.ItemStack getItemStack(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemStackPredicate
Predicate<org.bukkit.inventory.ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DBlock
Location2D getLocation2DBlock(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocation2DPrecise
Location2D getLocation2DPrecise(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationBlock
org.bukkit.Location getLocationBlock(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String str) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLocationPrecise
org.bukkit.Location getLocationPrecise(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String str) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLootTable
org.bukkit.loot.LootTable getLootTable(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getMathOperation
MathOperation getMathOperation(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getMinecraftKey
org.bukkit.NamespacedKey getMinecraftKey(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getNBTCompound
<NBTContainer> Object getNBTCompound(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, Function<Object, NBTContainer> nbtContainerConstructor) -
getObjective
org.bukkit.scoreboard.Objective getObjective(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws IllegalArgumentException, com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
IllegalArgumentExceptioncom.mojang.brigadier.exceptions.CommandSyntaxException
-
getObjectiveCriteria
String getObjectiveCriteria(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getParticle
ParticleData<?> getParticle(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getPlayer
org.bukkit.entity.Player getPlayer(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getOfflinePlayer
org.bukkit.OfflinePlayer getOfflinePlayer(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getPotionEffect
Object getPotionEffect(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRecipe
org.bukkit.inventory.Recipe getRecipe(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getRotation
Rotation getRotation(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getScoreboardSlot
ScoreboardSlot getScoreboardSlot(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getScoreHolderMultiple
Collection<String> getScoreHolderMultiple(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScoreHolderSingle
String getScoreHolderSingle(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTeam
org.bukkit.scoreboard.Team getTeam(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTime
-
getUUID
UUID getUUID(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) -
getWorldForCSS
-
getSimpleCommandMap
org.bukkit.command.SimpleCommandMap getSimpleCommandMap()Returns the Server's internal (OBC) CommandMap- Returns:
- A SimpleCommandMap from the OBC server
-
getSound
Object getSound(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key, ArgumentSubType subType) -
getSuggestionProvider
com.mojang.brigadier.suggestion.SuggestionProvider<CommandListenerWrapper> getSuggestionProvider(SuggestionProviders provider) Retrieve a specific NMS implemented SuggestionProvider- Parameters:
provider- The SuggestionProvider type to retrieve- Returns:
- A SuggestionProvider that matches the SuggestionProviders input
-
getTag
-
getTags
Set<org.bukkit.NamespacedKey> getTags() -
reloadDataPacks
void reloadDataPacks()Reloads the datapacks by using the updated the commandDispatcher tree -
generateHelpTopic
-
getHelpMap
-
generateMessageFromJson
-
createCommandRegistrationStrategy
CommandRegistrationStrategy<CommandListenerWrapper> createCommandRegistrationStrategy()
-