public class ParticleArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<IParticleData>
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
PARTICLE_NOT_FOUND |
Constructor and Description |
---|
ParticleArgument() |
Modifier and Type | Method and Description |
---|---|
private static <T extends IParticleData> |
deserializeParticle(com.mojang.brigadier.StringReader reader,
ParticleType<T> type) |
java.util.Collection<java.lang.String> |
getExamples() |
static IParticleData |
getParticle(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
IParticleData |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
static IParticleData |
parseParticle(com.mojang.brigadier.StringReader reader) |
static ParticleArgument |
particle() |
private static final java.util.Collection<java.lang.String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType PARTICLE_NOT_FOUND
public static ParticleArgument particle()
public static IParticleData getParticle(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name)
public IParticleData parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<IParticleData>
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<IParticleData>
public static IParticleData parseParticle(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static <T extends IParticleData> T deserializeParticle(com.mojang.brigadier.StringReader reader, ParticleType<T> type) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<IParticleData>