Class CommandHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.CommandHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.MutableComponentgetHoverTextPokemon(Pokemon pokemon, int... args) static <T> net.minecraft.core.Holder.Reference<T> resolveKey(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String argument, net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registryKey, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exception)
-
Field Details
-
MINECRAFT_DYE_COLORS
public static final com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack> MINECRAFT_DYE_COLORS
-
-
Constructor Details
-
CommandHelper
public CommandHelper()
-
-
Method Details
-
getHoverTextPokemon
public static net.minecraft.network.chat.MutableComponent getHoverTextPokemon(Pokemon pokemon, int... args) -
resolveKey
public static <T> net.minecraft.core.Holder.Reference<T> resolveKey(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String argument, net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registryKey, com.mojang.brigadier.exceptions.DynamicCommandExceptionType exception) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-