Class CommandHelper

java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.CommandHelper

public class CommandHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.network.chat.MutableComponent
    getHoverTextPokemon(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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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