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 com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static Collection<String>
-
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()
static ParticleOptions
readParticle(com.mojang.brigadier.StringReader p_103945_)
private static <T extends ParticleOptions>
TreadParticle(com.mojang.brigadier.StringReader p_103935_, ParticleType<T> p_103936_)
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_PARTICLE
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_PARTICLE
-
-
Constructor Details
-
ParticleArgument
public 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_103945_) 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 interfacecom.mojang.brigadier.arguments.ArgumentType<ParticleOptions>
-