Class MinecraftArgumentTypes

java.lang.Object
cloud.commandframework.bukkit.internal.MinecraftArgumentTypes

@Beta public final class MinecraftArgumentTypes extends Object
A registry of the ArgumentTypes provided by Minecraft.

This file is taken from MIT licensed code in commodore (https://github.com/lucko/commodore).

This is not API, and as such, may break, change, or be removed without any notice.

  • Method Details

    • getClassByKey

      public static Class<? extends com.mojang.brigadier.arguments.ArgumentType<?>> getClassByKey(@NonNull org.bukkit.NamespacedKey key) throws IllegalArgumentException
      Gets a registered argument type class by key.
      Parameters:
      key - the key
      Returns:
      the returned argument type class
      Throws:
      IllegalArgumentException - if no such argument is registered