Class ParticleEffectArgumentType

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

public class ParticleEffectArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ParticleEffect>
Mappings:
Namespace Name
official fa
intermediary net/minecraft/class_2223
named net/minecraft/command/argument/ParticleEffectArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official b Lfa;b:Ljava/util/Collection;
      intermediary field_9935 Lnet/minecraft/class_2223;field_9935:Ljava/util/Collection;
      named EXAMPLES Lnet/minecraft/command/argument/ParticleEffectArgumentType;EXAMPLES:Ljava/util/Collection;
    • UNKNOWN_PARTICLE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_PARTICLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Lfa;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_9936 Lnet/minecraft/class_2223;field_9936:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named UNKNOWN_PARTICLE_EXCEPTION Lnet/minecraft/command/argument/ParticleEffectArgumentType;UNKNOWN_PARTICLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • registryLookup

      private final RegistryWrapper.WrapperLookup registryLookup
      Mappings:
      Namespace Name Mixin selector
      official c Lfa;c:Liy$a;
      intermediary field_48929 Lnet/minecraft/class_2223;field_48929:Lnet/minecraft/class_7225$class_7874;
      named registryLookup Lnet/minecraft/command/argument/ParticleEffectArgumentType;registryLookup:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
  • Constructor Details

    • ParticleEffectArgumentType

      public ParticleEffectArgumentType(CommandRegistryAccess registryAccess)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfa;<init>(Ldz;)V
      intermediary <init> Lnet/minecraft/class_2223;<init>(Lnet/minecraft/class_7157;)V
      named <init> Lnet/minecraft/command/argument/ParticleEffectArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
  • Method Details

    • particleEffect

      public static ParticleEffectArgumentType particleEffect(CommandRegistryAccess registryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Lfa;a(Ldz;)Lfa;
      intermediary method_9417 Lnet/minecraft/class_2223;method_9417(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2223;
      named particleEffect Lnet/minecraft/command/argument/ParticleEffectArgumentType;particleEffect(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/ParticleEffectArgumentType;
    • getParticle

      public static ParticleEffect getParticle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lfa;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lkv;
      intermediary method_9421 Lnet/minecraft/class_2223;method_9421(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2394;
      named getParticle Lnet/minecraft/command/argument/ParticleEffectArgumentType;getParticle(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/particle/ParticleEffect;
    • parse

      public ParticleEffect parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<ParticleEffect>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfa;a(Lcom/mojang/brigadier/StringReader;)Lkv;
      intermediary method_9416 Lnet/minecraft/class_2223;method_9416(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2394;
      named parse Lnet/minecraft/command/argument/ParticleEffectArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/particle/ParticleEffect;
    • getExamples

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

      public static ParticleEffect readParameters(com.mojang.brigadier.StringReader reader, RegistryWrapper.WrapperLookup registryLookup) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfa;a(Lcom/mojang/brigadier/StringReader;Liy$a;)Lkv;
      intermediary method_9418 Lnet/minecraft/class_2223;method_9418(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2394;
      named readParameters Lnet/minecraft/command/argument/ParticleEffectArgumentType;readParameters(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/particle/ParticleEffect;
    • getType

      private static ParticleType<?> getType(com.mojang.brigadier.StringReader reader, RegistryWrapper<ParticleType<?>> registryWrapper) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfa;a(Lcom/mojang/brigadier/StringReader;Liy;)Lkw;
      intermediary method_45583 Lnet/minecraft/class_2223;method_45583(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_7225;)Lnet/minecraft/class_2396;
      named getType Lnet/minecraft/command/argument/ParticleEffectArgumentType;getType(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/registry/RegistryWrapper;)Lnet/minecraft/particle/ParticleType;
    • readParameters

      private static <T extends ParticleEffect> T readParameters(com.mojang.brigadier.StringReader reader, ParticleType<T> type, RegistryWrapper.WrapperLookup registryLookup) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfa;a(Lcom/mojang/brigadier/StringReader;Lkw;Liy$a;)Lkv;
      intermediary method_9420 Lnet/minecraft/class_2223;method_9420(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_2396;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2394;
      named readParameters Lnet/minecraft/command/argument/ParticleEffectArgumentType;readParameters(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/particle/ParticleType;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/particle/ParticleEffect;
    • 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<ParticleEffect>
      Mappings:
      Namespace Name Mixin selector
      official listSuggestions Lfa;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_2223;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named listSuggestions Lnet/minecraft/command/argument/ParticleEffectArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;