public final class MinecraftArgumentTypes extends Object
ArgumentTypes provided by Minecraft.| Modifier and Type | Method and Description |
|---|---|
static com.mojang.brigadier.arguments.ArgumentType<?> |
getByKey(org.bukkit.NamespacedKey key)
Gets a registered argument type by key.
|
static Class<? extends com.mojang.brigadier.arguments.ArgumentType<?>> |
getClassByKey(org.bukkit.NamespacedKey key)
Gets a registered argument type class by key.
|
static boolean |
isRegistered(org.bukkit.NamespacedKey key)
Gets if a argument is registered for the given key.
|
public static boolean isRegistered(org.bukkit.NamespacedKey key)
key - the keypublic static Class<? extends com.mojang.brigadier.arguments.ArgumentType<?>> getClassByKey(org.bukkit.NamespacedKey key) throws IllegalArgumentException
key - the keyIllegalArgumentException - if no such argument is registeredpublic static com.mojang.brigadier.arguments.ArgumentType<?> getByKey(org.bukkit.NamespacedKey key)
throws IllegalArgumentException
key - the keyIllegalArgumentException - if no such argument is registeredCopyright © 2020. All rights reserved.