public class MinecraftArgumentTypesAccessor extends Object
ArgumentType
s provided by mojang in the server's
internals.Modifier and Type | Method and Description |
---|---|
static void |
ensureSetup() |
static Class<? extends com.mojang.brigadier.arguments.ArgumentType<?>> |
getArgumentClass(org.bukkit.NamespacedKey key)
Retrieves the registered argument type's class, matching the key specified, if brigadier is
supported.
|
static com.mojang.brigadier.arguments.ArgumentType<?> |
getByKey(org.bukkit.NamespacedKey key)
Retrieves the registered argument type, matching the key specified, if brigadier is supported.
|
public static void ensureSetup()
public static Class<? extends com.mojang.brigadier.arguments.ArgumentType<?>> getArgumentClass(org.bukkit.NamespacedKey key)
key
- the key of the argument type you want to retrievepublic static com.mojang.brigadier.arguments.ArgumentType<?> getByKey(org.bukkit.NamespacedKey key)
key
- the key of the argument type you want to retrieveCopyright © 2020. All rights reserved.