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 ea
intermediary net/minecraft/class_2201
named net/minecraft/command/argument/StatusEffectArgumentType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Collection<String>
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
parse(com.mojang.brigadier.StringReader stringReader)
static StatusEffectArgumentType
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official b
Lea;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
Lea;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
Lea;a()Lea;
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
Lea;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lasx;
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
Lea;a(Lcom/mojang/brigadier/StringReader;)Lasx;
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
Lea;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>
-