Package net.minecraft.command.argument
Class TimeArgumentType
java.lang.Object
net.minecraft.command.argument.TimeArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Integer>
public class TimeArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Integer>
- Mappings:
Namespace Name official faintermediary net/minecraft/class_2245named net/minecraft/command/argument/TimeArgumentType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final Object2IntMap<String> -
Constructor Summary
Constructors -
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) static TimeArgumentTypetime()
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official aLfa;a:Ljava/util/Collection;intermediary field_9969Lnet/minecraft/class_2245;field_9969:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/TimeArgumentType;EXAMPLES:Ljava/util/Collection;
-
INVALID_UNIT_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UNIT_EXCEPTION- Mappings:
Namespace Name Mixin selector official bLfa;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9970Lnet/minecraft/class_2245;field_9970:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named INVALID_UNIT_EXCEPTIONLnet/minecraft/command/argument/TimeArgumentType;INVALID_UNIT_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
INVALID_COUNT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COUNT_EXCEPTION- Mappings:
Namespace Name Mixin selector official cLfa;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_9971Lnet/minecraft/class_2245;field_9971:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named INVALID_COUNT_EXCEPTIONLnet/minecraft/command/argument/TimeArgumentType;INVALID_COUNT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
UNITS
- Mappings:
Namespace Name Mixin selector official dLfa;d:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_9972Lnet/minecraft/class_2245;field_9972:Lit/unimi/dsi/fastutil/objects/Object2IntMap;named UNITSLnet/minecraft/command/argument/TimeArgumentType;UNITS:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
TimeArgumentType
public TimeArgumentType()
-
-
Method Details
-
time
- Mappings:
Namespace Name Mixin selector official aLfa;a()Lfa;intermediary method_9489Lnet/minecraft/class_2245;method_9489()Lnet/minecraft/class_2245;named timeLnet/minecraft/command/argument/TimeArgumentType;time()Lnet/minecraft/command/argument/TimeArgumentType;
-
parse
public Integer parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLfa;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;intermediary method_9490Lnet/minecraft/class_2245;method_9490(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;named parseLnet/minecraft/command/argument/TimeArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
-
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<Integer>- Mappings:
Namespace Name Mixin selector official listSuggestionsLfa;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2245;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/TimeArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
-