Class ParticleArgument

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

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

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_UNKNOWN_PARTICLE

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_PARTICLE
    • particles

      private final HolderLookup<ParticleType<?>> particles
  • Constructor Details

  • Method Details

    • particle

      public static ParticleArgument particle(CommandBuildContext p_251304_)
    • getParticle

      public static ParticleOptions getParticle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_103938_, String p_103939_)
    • parse

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

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

      public static ParticleOptions readParticle(com.mojang.brigadier.StringReader p_249275_, HolderLookup<ParticleType<?>> p_251929_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readParticleType

      private static ParticleType<?> readParticleType(com.mojang.brigadier.StringReader p_249621_, HolderLookup<ParticleType<?>> p_248983_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readParticle

      private static <T extends ParticleOptions> T readParticle(com.mojang.brigadier.StringReader p_103935_, ParticleType<T> p_103936_) 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_103948_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_103949_)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<ParticleOptions>