Class TimeArgument
java.lang.Object
net.minecraft.commands.arguments.TimeArgument
- All Implemented Interfaces:
ArgumentType<Integer>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final Dynamic2CommandExceptionTypeprivate static final Collection<String> private final intprivate static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) static TimeArgumenttime()static TimeArgumenttime(int minimum) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_INVALID_UNIT
-
ERROR_TICK_COUNT_TOO_LOW
-
UNITS
-
minimum
private final int minimum
-
-
Constructor Details
-
TimeArgument
private TimeArgument(int minimum)
-
-
Method Details
-
time
-
time
-
parse
- Specified by:
parsein interfaceArgumentType<Integer>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<Integer>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<Integer>
-