类 StatusEffectArgumentType
- java.lang.Object
-
- net.minecraft.command.argument.StatusEffectArgumentType
-
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<StatusEffect>
public class StatusEffectArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<StatusEffect>
- Mappings:
Namespace Name official dvintermediary net/minecraft/class_2201named net/minecraft/command/argument/StatusEffectArgumentType
-
-
字段概要
字段 修饰符和类型 字段 说明 private static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_EFFECT_EXCEPTION
-
构造器概要
构造器 构造器 说明 StatusEffectArgumentType()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Collection<String>getExamples()static StatusEffectgetStatusEffect(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)StatusEffectparse(com.mojang.brigadier.StringReader stringReader)static StatusEffectArgumentTypestatusEffect()
-
-
-
字段详细资料
-
EXAMPLES
private static final Collection<String> EXAMPLES
- Mappings:
Namespace Name Mixin selector official bLdv;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 aLdv;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;
-
-
方法详细资料
-
statusEffect
public static StatusEffectArgumentType statusEffect()
- Mappings:
Namespace Name Mixin selector official aLdv;a()Ldv;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> commandContext, String string)
- Mappings:
Namespace Name Mixin selector official aLdv;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lasd;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
- 指定者:
parse在接口中com.mojang.brigadier.arguments.ArgumentType<StatusEffect>- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLdv;a(Lcom/mojang/brigadier/StringReader;)Lasd;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)
- 指定者:
listSuggestions在接口中com.mojang.brigadier.arguments.ArgumentType<StatusEffect>- Mappings:
Namespace Name Mixin selector official listSuggestionsLdv;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
public Collection<String> getExamples()
- 指定者:
getExamples在接口中com.mojang.brigadier.arguments.ArgumentType<StatusEffect>- Mappings:
Namespace Name Mixin selector official getExamplesLdv;getExamples()Ljava/util/Collection;intermediary getExamplesLnet/minecraft/class_2201;getExamples()Ljava/util/Collection;named getExamplesLnet/minecraft/command/argument/StatusEffectArgumentType;getExamples()Ljava/util/Collection;
-
-