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 egintermediary net/minecraft/class_2201named net/minecraft/command/argument/StatusEffectArgumentType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusEffectgetStatusEffect(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) parse(com.mojang.brigadier.StringReader stringReader) static StatusEffectArgumentType
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official bLeg;b:Ljava/util/Collection;intermediary field_9895Lnet/minecraft/class_2201;field_9895:Ljava/util/Collection;named EXAMPLESLnet/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 aLeg;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_9896Lnet/minecraft/class_2201;field_9896:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named INVALID_EFFECT_EXCEPTIONLnet/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 aLeg;a()Leg;intermediary method_9350Lnet/minecraft/class_2201;method_9350()Lnet/minecraft/class_2201;named statusEffectLnet/minecraft/command/argument/StatusEffectArgumentType;statusEffect()Lnet/minecraft/command/argument/StatusEffectArgumentType;
-
getStatusEffect
public static StatusEffect getStatusEffect(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector official aLeg;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbah;intermediary method_9347Lnet/minecraft/class_2201;method_9347(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1291;named getStatusEffectLnet/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:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLeg;a(Lcom/mojang/brigadier/StringReader;)Lbah;intermediary method_9348Lnet/minecraft/class_2201;method_9348(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_1291;named parseLnet/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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>- Mappings:
Namespace Name Mixin selector official listSuggestionsLeg;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2201;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/StatusEffectArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<StatusEffect>
-