Class CommodoreBukkitBrigadier

java.lang.Object
revxrsal.commands.bukkit.brigadier.CommodoreBukkitBrigadier
All Implemented Interfaces:
BukkitBrigadier

public final class CommodoreBukkitBrigadier extends Object implements BukkitBrigadier
  • Constructor Details

  • Method Details

    • bind

      public void bind(@NotNull @NotNull Class<?> type, @NotNull @NotNull ArgumentTypeResolver resolver)
      Description copied from interface: BukkitBrigadier
      Registers an argument type resolver for the given class. This will include subclasses as well.
      Specified by:
      bind in interface BukkitBrigadier
      Parameters:
      type - Type to register for
      resolver - The argument type resolver
    • bind

      public void bind(@NotNull @NotNull Class<?> type, @NotNull @NotNull com.mojang.brigadier.arguments.ArgumentType<?> argumentType)
      Description copied from interface: BukkitBrigadier
      Registers an argument type for the given class. This will include subclasses as well.
      Specified by:
      bind in interface BukkitBrigadier
      Parameters:
      type - Type to register for
      argumentType - The argument type to register
      See Also:
    • bind

      public void bind(@NotNull @NotNull Class<?> type, @NotNull @NotNull MinecraftArgumentType argumentType)
      Description copied from interface: BukkitBrigadier
      Registers an argument type for the given class. This will include subclasses as well.
      Specified by:
      bind in interface BukkitBrigadier
      Parameters:
      type - Type to register for
      argumentType - The argument type to register
      See Also:
    • getArgumentType

      @NotNull public @NotNull com.mojang.brigadier.arguments.ArgumentType<?> getArgumentType(@NotNull @NotNull CommandParameter parameter)
      Description copied from interface: BukkitBrigadier
      Returns the argument type corresponding to the given parameter. If no resolver is able to handle this parameter, StringArgumentType.greedyString() will be returned.
      Specified by:
      getArgumentType in interface BukkitBrigadier
      Parameters:
      parameter - Parameter to got for
      Returns:
      The argument type
    • wrapSource

      @NotNull public @NotNull CommandActor wrapSource(@NotNull @NotNull Object commandSource)
      Description copied from interface: BukkitBrigadier
      Wraps Brigadier's command sender with the platform's appropriate CommandActor
      Specified by:
      wrapSource in interface BukkitBrigadier
      Parameters:
      commandSource - Source to wrap
      Returns:
      The wrapped command source
    • register

      public void register()
      Description copied from interface: BukkitBrigadier
      Registers the command handler's brigadier
      Specified by:
      register in interface BukkitBrigadier