Class TimeArgument
java.lang.Object
com.zenith.command.brigadier.TimeArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Integer>, SerializableArgumentType<Integer>
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean@NonNull CommandParser@Nullable CommandPropertiesbooleanintintgetTime(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) returns ticks as intinthashCode()CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) static TimeArgumenttime()static TimeArgumenttime(int minimum) static TimeArgumenttime(int minimum, int maximum) toString()Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, parseMethods inherited from interface SerializableArgumentType
askServerForSuggestions
-
Method Details
-
time
-
time
-
time
-
getTime
public Integer getTime(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) returns ticks as int -
parse
-
listSuggestions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<Integer>
-
commandParser
- Specified by:
commandParserin interfaceSerializableArgumentType<Integer>
-
commandProperties
- Specified by:
commandPropertiesin interfaceSerializableArgumentType<Integer>
-
getMinimum
public int getMinimum() -
getMaximum
public int getMaximum() -
equals
-
canEqual
-
hashCode
-
toString
-