Package net.minecraft.commands.arguments
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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final Collection
<String> private final HolderLookup.Provider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParticleOptions
getParticle
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_103938_, String p_103939_) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_103948_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_103949_) parse
(com.mojang.brigadier.StringReader p_103933_) static ParticleArgument
particle
(CommandBuildContext p_251304_) static ParticleOptions
readParticle
(com.mojang.brigadier.StringReader p_249275_, HolderLookup.Provider p_333534_) private static <T extends ParticleOptions>
TreadParticle
(com.mojang.brigadier.StringReader p_103935_, ParticleType<T> p_103936_, HolderLookup.Provider p_329867_) private static ParticleType
<?> readParticleType
(com.mojang.brigadier.StringReader p_249621_, HolderLookup<ParticleType<?>> p_248983_)
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_PARTICLE
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_PARTICLE -
ERROR_INVALID_OPTIONS
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_OPTIONS -
registries
-
-
Constructor Details
-
ParticleArgument
-
-
Method Details
-
particle
-
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 interfacecom.mojang.brigadier.arguments.ArgumentType<ParticleOptions>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ParticleOptions>
-
readParticle
public static ParticleOptions readParticle(com.mojang.brigadier.StringReader p_249275_, HolderLookup.Provider p_333534_) 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_, HolderLookup.Provider p_329867_) 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 interfacecom.mojang.brigadier.arguments.ArgumentType<ParticleOptions>
-