Package net.minecraft.command.argument
Class EnumArgumentType<T extends Enum<T> & StringIdentifiable>
java.lang.Object
net.minecraft.command.argument.EnumArgumentType<T>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
- Direct Known Subclasses:
BlockMirrorArgumentType
,BlockRotationArgumentType
,HeightmapArgumentType
public class EnumArgumentType<T extends Enum<T> & StringIdentifiable>
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<T>
- Mappings:
Namespace Name named net/minecraft/command/argument/EnumArgumentType
intermediary net/minecraft/class_7485
official fz
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec
<T> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
ModifierConstructorDescriptionprotected
EnumArgumentType
(com.mojang.serialization.Codec<T> codec, Supplier<T[]> valuesSupplier) -
Method Summary
Modifier and TypeMethodDescription<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) protected String
transformValueName
(String name)
-
Field Details
-
INVALID_ENUM_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_ENUM_EXCEPTION- Mappings:
Namespace Name Mixin selector named INVALID_ENUM_EXCEPTION
Lnet/minecraft/command/argument/EnumArgumentType;INVALID_ENUM_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_39361
Lnet/minecraft/class_7485;field_39361:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
official a
Lfz;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
codec
- Mappings:
Namespace Name Mixin selector named codec
Lnet/minecraft/command/argument/EnumArgumentType;codec:Lcom/mojang/serialization/Codec;
intermediary field_39362
Lnet/minecraft/class_7485;field_39362:Lcom/mojang/serialization/Codec;
official b
Lfz;b:Lcom/mojang/serialization/Codec;
-
valuesSupplier
- Mappings:
Namespace Name Mixin selector named valuesSupplier
Lnet/minecraft/command/argument/EnumArgumentType;valuesSupplier:Ljava/util/function/Supplier;
intermediary field_39363
Lnet/minecraft/class_7485;field_39363:Ljava/util/function/Supplier;
official c
Lfz;c:Ljava/util/function/Supplier;
-
-
Constructor Details
-
EnumArgumentType
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/EnumArgumentType;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Supplier;)V
intermediary <init>
Lnet/minecraft/class_7485;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Supplier;)V
official <init>
Lfz;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Supplier;)V
-
-
Method Details
-
parse
public T parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<T extends Enum<T> & StringIdentifiable>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/EnumArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Enum;
intermediary method_44091
Lnet/minecraft/class_7485;method_44091(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Enum;
official a
Lfz;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Enum;
-
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<T extends Enum<T> & StringIdentifiable>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/EnumArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_7485;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
official listSuggestions
Lfz;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<T extends Enum<T> & StringIdentifiable>
-
transformValueName
- Mappings:
Namespace Name Mixin selector named transformValueName
Lnet/minecraft/command/argument/EnumArgumentType;transformValueName(Ljava/lang/String;)Ljava/lang/String;
intermediary method_49545
Lnet/minecraft/class_7485;method_49545(Ljava/lang/String;)Ljava/lang/String;
official a
Lfz;a(Ljava/lang/String;)Ljava/lang/String;
-