Package net.minecraft.command.suggestion
Record Class SuggestionProviders.LocalProvider
java.lang.Object
java.lang.Record
net.minecraft.command.suggestion.SuggestionProviders.LocalProvider
- Record Components:
id-provider-
- All Implemented Interfaces:
com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
- Enclosing class:
SuggestionProviders
private static record SuggestionProviders.LocalProvider(Identifier id, com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> provider)
extends Record
implements com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
- Mappings:
Namespace Name named net/minecraft/command/suggestion/SuggestionProviders$LocalProviderintermediary net/minecraft/class_2321$class_2322official in$anamed idintermediary comp_4376official anamed providerintermediary comp_4377official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theidrecord component.private final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> The field for theproviderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLocalProvider(Identifier identifier, com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> suggestionProvider) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(com.mojang.brigadier.context.CommandContext<CommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
LocalProvider
LocalProvider(Identifier identifier, com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> suggestionProvider)
-
-
Method Details
-
getSuggestions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(com.mojang.brigadier.context.CommandContext<CommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getSuggestionsin interfacecom.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getSuggestionsLnet/minecraft/command/suggestion/SuggestionProviders$LocalProvider;getSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary getSuggestionsLnet/minecraft/class_2321$class_2322;getSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;official getSuggestionsLin$a;getSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-