Record Class EnumDataTypeArgument<T>
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.command.EnumDataTypeArgument<T>
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEnumDataTypeArgument(DataType<T> dataType) Creates an instance of aEnumDataTypeArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()Returns the value of thedataTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<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 reader) final StringtoString()Returns a string representation of this record class.Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Constructor Details
-
EnumDataTypeArgument
-
-
Method Details
-
parse
-
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<T>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<T>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
dataType
-