public class ParticleArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ParticleEffect>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_PARTICLE_EXCEPTION |
Constructor and Description |
---|
ParticleArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static ParticleEffect |
getParticle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
ParticleEffect |
parse(com.mojang.brigadier.StringReader stringReader) |
static ParticleArgumentType |
particle() |
static ParticleEffect |
readParameters(com.mojang.brigadier.StringReader reader) |
private static <T extends ParticleEffect> |
readParameters(com.mojang.brigadier.StringReader reader,
ParticleType<T> type) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_PARTICLE_EXCEPTION
public static ParticleArgumentType particle()
public static ParticleEffect getParticle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public ParticleEffect parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ParticleEffect>
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ParticleEffect>
public static ParticleEffect readParameters(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static <T extends ParticleEffect> T readParameters(com.mojang.brigadier.StringReader reader, ParticleType<T> type)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<ParticleEffect>