Class ParticleArgument

java.lang.Object
net.minecraft.command.arguments.ParticleArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<IParticleData>

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

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_UNKNOWN_PARTICLE

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

    • ParticleArgument

      public ParticleArgument()
  • Method Details

    • particle

      public static ParticleArgument particle()
    • getParticle

      public static IParticleData getParticle(com.mojang.brigadier.context.CommandContext<CommandSource> p_197187_0_, String p_197187_1_)
    • parse

      public IParticleData parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<IParticleData>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

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

      public static IParticleData readParticle(com.mojang.brigadier.StringReader p_197189_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readParticle

      private static <T extends IParticleData> T readParticle(com.mojang.brigadier.StringReader p_199816_0_, ParticleType<T> p_199816_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<IParticleData>