Class MobEffectArgumentType

java.lang.Object
net.minecraft.command.argument.MobEffectArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<StatusEffect>

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

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • INVALID_EFFECT_EXCEPTION

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

    • MobEffectArgumentType

      public MobEffectArgumentType()
  • Method Details

    • mobEffect

      public static MobEffectArgumentType mobEffect()
    • getMobEffect

      public static StatusEffect getMobEffect​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
    • parse

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

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

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