Record Class WrappedCommand1_18_2.CustomSuggester
java.lang.Object
java.lang.Record
mods.thecomputerizer.theimpossiblelibrary.shared.v18.m2.server.WrappedCommand1_18_2.CustomSuggester
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<String>
- Enclosing class:
- WrappedCommand1_18_2
-
Constructor Summary
ConstructorsConstructorDescriptionCustomSuggester(mods.thecomputerizer.theimpossiblelibrary.api.server.CommandAPI command) Creates an instance of aCustomSuggesterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionmods.thecomputerizer.theimpossiblelibrary.api.server.CommandAPIcommand()Returns the value of thecommandrecord 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> ctx, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples
-
Constructor Details
-
CustomSuggester
public CustomSuggester(mods.thecomputerizer.theimpossiblelibrary.api.server.CommandAPI command) Creates an instance of aCustomSuggesterrecord class.- Parameters:
command- the value for thecommandrecord component
-
-
Method Details
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> ctx, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<String>
-
parse
- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<String>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
command
public mods.thecomputerizer.theimpossiblelibrary.api.server.CommandAPI command()Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-