Class MobEffectArgument

java.lang.Object
net.minecraft.commands.arguments.MobEffectArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<MobEffect>

public class MobEffectArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<MobEffect>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_UNKNOWN_EFFECT

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_EFFECT
  • Constructor Details

    • MobEffectArgument

      public MobEffectArgument()
  • Method Details

    • effect

      public static MobEffectArgument effect()
    • getEffect

      public static MobEffect getEffect(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_98430_, String p_98431_)
    • parse

      public MobEffect parse(com.mojang.brigadier.StringReader p_98428_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<MobEffect>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_98438_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_98439_)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<MobEffect>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<MobEffect>