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 named net/minecraft/command/argument/TimeArgumentType
intermediary net/minecraft/class_2245
official gf
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
(package private) final int
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final Object2IntMap
<String> -
Constructor Summary
-
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 TimeArgumentType
time()
static TimeArgumentType
time
(int minimum)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/TimeArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_9969
Lnet/minecraft/class_2245;field_9969:Ljava/util/Collection;
official a
Lgf;a:Ljava/util/Collection;
-
INVALID_UNIT_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UNIT_EXCEPTION- Mappings:
Namespace Name Mixin selector named INVALID_UNIT_EXCEPTION
Lnet/minecraft/command/argument/TimeArgumentType;INVALID_UNIT_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_9970
Lnet/minecraft/class_2245;field_9970:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
official b
Lgf;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
TICK_COUNT_TOO_LOW_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType TICK_COUNT_TOO_LOW_EXCEPTION- Mappings:
Namespace Name Mixin selector named TICK_COUNT_TOO_LOW_EXCEPTION
Lnet/minecraft/command/argument/TimeArgumentType;TICK_COUNT_TOO_LOW_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_41857
Lnet/minecraft/class_2245;field_41857:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
official c
Lgf;c:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
UNITS
- Mappings:
Namespace Name Mixin selector named UNITS
Lnet/minecraft/command/argument/TimeArgumentType;UNITS:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_9972
Lnet/minecraft/class_2245;field_9972:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official d
Lgf;d:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
minimum
final int minimum- Mappings:
Namespace Name Mixin selector named minimum
Lnet/minecraft/command/argument/TimeArgumentType;minimum:I
intermediary field_41858
Lnet/minecraft/class_2245;field_41858:I
official e
Lgf;e:I
-
-
Constructor Details
-
TimeArgumentType
private TimeArgumentType(int minimum) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/TimeArgumentType;<init>(I)V
intermediary <init>
Lnet/minecraft/class_2245;<init>(I)V
official <init>
Lgf;<init>(I)V
-
-
Method Details
-
time
- Mappings:
Namespace Name Mixin selector named time
Lnet/minecraft/command/argument/TimeArgumentType;time()Lnet/minecraft/command/argument/TimeArgumentType;
intermediary method_9489
Lnet/minecraft/class_2245;method_9489()Lnet/minecraft/class_2245;
official a
Lgf;a()Lgf;
-
time
- Mappings:
Namespace Name Mixin selector named time
Lnet/minecraft/command/argument/TimeArgumentType;time(I)Lnet/minecraft/command/argument/TimeArgumentType;
intermediary method_48287
Lnet/minecraft/class_2245;method_48287(I)Lnet/minecraft/class_2245;
official a
Lgf;a(I)Lgf;
-
parse
public Integer parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/TimeArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
intermediary method_9490
Lnet/minecraft/class_2245;method_9490(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Integer;
official a
Lgf;a(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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/TimeArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2245;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
official listSuggestions
Lgf;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<Integer>
-