Package net.minecraft.command.argument
Class StatusEffectArgumentType
java.lang.Object
net.minecraft.command.argument.StatusEffectArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<StatusEffect>
public class StatusEffectArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<StatusEffect>
- Mappings:
Namespace Name official dq
intermediary net/minecraft/class_2201
named net/minecraft/command/argument/StatusEffectArgumentType
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
INVALID_EFFECT_EXCEPTION
-
Constructor Summary
Constructors Constructor Description StatusEffectArgumentType()
-
Method Summary
Modifier and Type Method Description Collection<String>
getExamples()
static StatusEffect
getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
StatusEffect
parse(com.mojang.brigadier.StringReader stringReader)
static StatusEffectArgumentType
statusEffect()
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official b
Ldq;b:Ljava/util/Collection;
intermediary field_9895
Lnet/minecraft/class_2201;field_9895:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/StatusEffectArgumentType;EXAMPLES:Ljava/util/Collection;
-
INVALID_EFFECT_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_EFFECT_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Ldq;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_9896
Lnet/minecraft/class_2201;field_9896:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named INVALID_EFFECT_EXCEPTION
Lnet/minecraft/command/argument/StatusEffectArgumentType;INVALID_EFFECT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
StatusEffectArgumentType
public StatusEffectArgumentType()
-
-
Method Details
-
statusEffect
- Mappings:
Namespace Name Mixin selector official a
Ldq;a()Ldq;
intermediary method_9350
Lnet/minecraft/class_2201;method_9350()Lnet/minecraft/class_2201;
named statusEffect
Lnet/minecraft/command/argument/StatusEffectArgumentType;statusEffect()Lnet/minecraft/command/argument/StatusEffectArgumentType;
-
getStatusEffect
public static StatusEffect getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)- Mappings:
Namespace Name Mixin selector official a
Ldq;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Laqn;
intermediary method_9347
Lnet/minecraft/class_2201;method_9347(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1291;
named getStatusEffect
Lnet/minecraft/command/argument/StatusEffectArgumentType;getStatusEffect(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/entity/effect/StatusEffect;
-
parse
public StatusEffect parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldq;a(Lcom/mojang/brigadier/StringReader;)Laqn;
intermediary method_9348
Lnet/minecraft/class_2201;method_9348(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_1291;
named parse
Lnet/minecraft/command/argument/StatusEffectArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/entity/effect/StatusEffect;
-
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 interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Ldq;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2201;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named listSuggestions
Lnet/minecraft/command/argument/StatusEffectArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
- Mappings:
Namespace Name Mixin selector official getExamples
Ldq;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_2201;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/StatusEffectArgumentType;getExamples()Ljava/util/Collection;
-