Interface NMS<CommandListenerWrapper>

All Known Implementing Classes:
CommandAPIBukkit

public interface NMS<CommandListenerWrapper>
  • 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

      com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentEntity(ArgumentSubType subType)
      Parameters:
      subType - one of ArgumentSubType.ENTITYSELECTOR_MANY_ENTITIES, ArgumentSubType.ENTITYSELECTOR_MANY_PLAYERS, ArgumentSubType.ENTITYSELECTOR_ONE_ENTITY or ArgumentSubType.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

      com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentScoreholder(ArgumentSubType subType)
      Parameters:
      subType - one of ArgumentSubType.SCOREHOLDER_MULTIPLE or ArgumentSubType.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()
      Returns:
      Location 2D argument (precise position) (minecraft:vec2)
    • _ArgumentVec3

      com.mojang.brigadier.arguments.ArgumentType<?> _ArgumentVec3()
      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

      String convert(org.bukkit.inventory.ItemStack is)
    • convert

      String convert(ParticleData<?> particle)
    • convert

      String convert(org.bukkit.potion.PotionEffectType potion)
    • convert

      String convert(org.bukkit.Sound sound)
    • 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
    • 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)
    • getBrigadierDispatcher

      com.mojang.brigadier.CommandDispatcher<CommandListenerWrapper> getBrigadierDispatcher()
      Returns the Brigadier CommandDispatcher from the NMS CommandDispatcher
      Returns:
      A Brigadier CommandDispatcher
    • 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) 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

      SimpleFunctionWrapper getFunction(org.bukkit.NamespacedKey key)
    • 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:
      IllegalArgumentException
      com.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

      org.bukkit.potion.PotionEffectType getPotionEffect(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key) 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
    • 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

      SimpleFunctionWrapper[] getTag(org.bukkit.NamespacedKey key)
    • getTags

      Set<org.bukkit.NamespacedKey> getTags()
    • 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

      int getTime(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key)
    • getUUID

      UUID getUUID(com.mojang.brigadier.context.CommandContext<CommandListenerWrapper> cmdCtx, String key)
    • getWorldForCSS

      org.bukkit.World getWorldForCSS(CommandListenerWrapper clw)
    • isVanillaCommandWrapper

      boolean isVanillaCommandWrapper(org.bukkit.command.Command command)
      Checks if a Command is an instance of the OBC VanillaCommandWrapper
      Parameters:
      command - The Command to check
      Returns:
      true if Command is an instance of VanillaCommandWrapper
    • reloadDataPacks

      void reloadDataPacks()
      Reloads the datapacks by using the updated the commandDispatcher tree
    • resendPackets

      void resendPackets(org.bukkit.entity.Player player)
      Resends the command dispatcher's set of commands to a player.
      Parameters:
      player - the player to send the command graph packet to
    • generateHelpTopic

      org.bukkit.help.HelpTopic generateHelpTopic(String commandName, String shortDescription, String fullDescription, String permission)
    • addToHelpMap

      void addToHelpMap(Map<String,org.bukkit.help.HelpTopic> helpTopicsToAdd)
    • generateMessageFromJson

      com.mojang.brigadier.Message generateMessageFromJson(String json)