Package net.minecraft.command
Interface CommandSource
- All Known Implementing Classes:
ClientCommandSource
,ServerCommandSource
public interface CommandSource
- Mappings:
Namespace Name official dt
intermediary net/minecraft/class_2172
named net/minecraft/command/CommandSource
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
forEachMatching
(Iterable<T> candidates, String remaining, String prefix, Function<T, Identifier> identifier, Consumer<T> action) static <T> void
forEachMatching
(Iterable<T> candidates, String remaining, Function<T, Identifier> identifier, Consumer<T> action) default Collection<CommandSource.RelativePosition>
default Collection<String>
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
getCompletions
(com.mojang.brigadier.context.CommandContext<?> context) default Collection<String>
default Collection<CommandSource.RelativePosition>
boolean
hasPermissionLevel
(int level) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listIdSuggestions
(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context) static boolean
shouldSuggest
(String remaining, String candidate) Returns if a candidate should be suggested.static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestColumnPositions
(String remaining, Collection<CommandSource.RelativePosition> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Predicate<String> predicate) static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestFromIdentifier
(Iterable<T> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Function<T, Identifier> identifier, Function<T, com.mojang.brigadier.Message> tooltip) static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestFromIdentifier
(Stream<T> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Function<T, Identifier> identifier, Function<T, com.mojang.brigadier.Message> tooltip) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestIdentifiers
(Iterable<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestIdentifiers
(Iterable<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, String prefix) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestIdentifiers
(Stream<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestIdentifiers
(Stream<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, String prefix) default void
suggestIdentifiers
(Registry<?> registry, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestMatching
(Iterable<String> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestMatching
(Iterable<T> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Function<T, String> suggestionText, Function<T, com.mojang.brigadier.Message> tooltip) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestMatching
(String[] candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestMatching
(Stream<String> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestPositions
(String remaining, Collection<CommandSource.RelativePosition> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Predicate<String> predicate)
-
Method Details
-
getPlayerNames
Collection<String> getPlayerNames()- Mappings:
Namespace Name Mixin selector official p
Ldt;p()Ljava/util/Collection;
intermediary method_9262
Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;
named getPlayerNames
Lnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;
-
getChatSuggestions
- Mappings:
Namespace Name Mixin selector official w
Ldt;w()Ljava/util/Collection;
intermediary method_44750
Lnet/minecraft/class_2172;method_44750()Ljava/util/Collection;
named getChatSuggestions
Lnet/minecraft/command/CommandSource;getChatSuggestions()Ljava/util/Collection;
-
getEntitySuggestions
- Mappings:
Namespace Name Mixin selector official x
Ldt;x()Ljava/util/Collection;
intermediary method_9269
Lnet/minecraft/class_2172;method_9269()Ljava/util/Collection;
named getEntitySuggestions
Lnet/minecraft/command/CommandSource;getEntitySuggestions()Ljava/util/Collection;
-
getTeamNames
Collection<String> getTeamNames()- Mappings:
Namespace Name Mixin selector official q
Ldt;q()Ljava/util/Collection;
intermediary method_9267
Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;
named getTeamNames
Lnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;
-
getSoundIds
Stream<Identifier> getSoundIds()- Mappings:
Namespace Name Mixin selector official r
Ldt;r()Ljava/util/stream/Stream;
intermediary method_9254
Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;
named getSoundIds
Lnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;
-
getRecipeIds
Stream<Identifier> getRecipeIds()- Mappings:
Namespace Name Mixin selector official s
Ldt;s()Ljava/util/stream/Stream;
intermediary method_9273
Lnet/minecraft/class_2172;method_9273()Ljava/util/stream/Stream;
named getRecipeIds
Lnet/minecraft/command/CommandSource;getRecipeIds()Ljava/util/stream/Stream;
-
getCompletions
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9261
Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
named getCompletions
Lnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
-
getBlockPositionSuggestions
- Mappings:
Namespace Name Mixin selector official y
Ldt;y()Ljava/util/Collection;
intermediary method_17771
Lnet/minecraft/class_2172;method_17771()Ljava/util/Collection;
named getBlockPositionSuggestions
Lnet/minecraft/command/CommandSource;getBlockPositionSuggestions()Ljava/util/Collection;
-
getPositionSuggestions
- Mappings:
Namespace Name Mixin selector official z
Ldt;z()Ljava/util/Collection;
intermediary method_17772
Lnet/minecraft/class_2172;method_17772()Ljava/util/Collection;
named getPositionSuggestions
Lnet/minecraft/command/CommandSource;getPositionSuggestions()Ljava/util/Collection;
-
getWorldKeys
Set<RegistryKey<World>> getWorldKeys()- Mappings:
Namespace Name Mixin selector official t
Ldt;t()Ljava/util/Set;
intermediary method_29310
Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;
named getWorldKeys
Lnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;
-
getRegistryManager
DynamicRegistryManager getRegistryManager()- Mappings:
Namespace Name Mixin selector official u
Ldt;u()Lhr;
intermediary method_30497
Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;
named getRegistryManager
Lnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
-
getEnabledFeatures
FeatureSet getEnabledFeatures()- Mappings:
Namespace Name Mixin selector official v
Ldt;v()Lcau;
intermediary method_45549
Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;
named getEnabledFeatures
Lnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
-
suggestIdentifiers
default void suggestIdentifiers(Registry<?> registry, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Lhq;Ldt$a;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)V
intermediary method_41214
Lnet/minecraft/class_2172;method_41214(Lnet/minecraft/class_2378;Lnet/minecraft/class_2172$class_7078;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)V
named suggestIdentifiers
Lnet/minecraft/command/CommandSource;suggestIdentifiers(Lnet/minecraft/registry/Registry;Lnet/minecraft/command/CommandSource$SuggestedIdType;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)V
-
listIdSuggestions
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listIdSuggestions(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ladc;Ldt$a;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
intermediary method_41213
Lnet/minecraft/class_2172;method_41213(Lnet/minecraft/class_5321;Lnet/minecraft/class_2172$class_7078;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
named listIdSuggestions
Lnet/minecraft/command/CommandSource;listIdSuggestions(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/command/CommandSource$SuggestedIdType;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
-
hasPermissionLevel
boolean hasPermissionLevel(int level) - Mappings:
Namespace Name Mixin selector official c
Ldt;c(I)Z
intermediary method_9259
Lnet/minecraft/class_2172;method_9259(I)Z
named hasPermissionLevel
Lnet/minecraft/command/CommandSource;hasPermissionLevel(I)Z
-
forEachMatching
static <T> void forEachMatching(Iterable<T> candidates, String remaining, Function<T, Identifier> identifier, Consumer<T> action) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/lang/Iterable;Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
intermediary method_9268
Lnet/minecraft/class_2172;method_9268(Ljava/lang/Iterable;Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
named forEachMatching
Lnet/minecraft/command/CommandSource;forEachMatching(Ljava/lang/Iterable;Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
-
forEachMatching
static <T> void forEachMatching(Iterable<T> candidates, String remaining, String prefix, Function<T, Identifier> identifier, Consumer<T> action) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/lang/Iterable;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
intermediary method_9250
Lnet/minecraft/class_2172;method_9250(Ljava/lang/Iterable;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
named forEachMatching
Lnet/minecraft/command/CommandSource;forEachMatching(Ljava/lang/Iterable;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
-
suggestIdentifiers
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestIdentifiers(Iterable<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, String prefix) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9258
Lnet/minecraft/class_2172;method_9258(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
named suggestIdentifiers
Lnet/minecraft/command/CommandSource;suggestIdentifiers(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
-
suggestIdentifiers
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestIdentifiers(Stream<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, String prefix) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
intermediary method_40182
Lnet/minecraft/class_2172;method_40182(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
named suggestIdentifiers
Lnet/minecraft/command/CommandSource;suggestIdentifiers(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
-
suggestIdentifiers
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestIdentifiers(Iterable<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9270
Lnet/minecraft/class_2172;method_9270(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named suggestIdentifiers
Lnet/minecraft/command/CommandSource;suggestIdentifiers(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
suggestFromIdentifier
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestFromIdentifier(Iterable<T> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Function<T, Identifier> identifier, Function<T, com.mojang.brigadier.Message> tooltip) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9255
Lnet/minecraft/class_2172;method_9255(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
named suggestFromIdentifier
Lnet/minecraft/command/CommandSource;suggestFromIdentifier(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
-
suggestIdentifiers
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestIdentifiers(Stream<Identifier> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9257
Lnet/minecraft/class_2172;method_9257(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named suggestIdentifiers
Lnet/minecraft/command/CommandSource;suggestIdentifiers(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
suggestFromIdentifier
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestFromIdentifier(Stream<T> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Function<T, Identifier> identifier, Function<T, com.mojang.brigadier.Message> tooltip) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9271
Lnet/minecraft/class_2172;method_9271(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
named suggestFromIdentifier
Lnet/minecraft/command/CommandSource;suggestFromIdentifier(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
-
suggestPositions
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestPositions(String remaining, Collection<CommandSource.RelativePosition> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Predicate<String> predicate) - Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/lang/String;Ljava/util/Collection;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Predicate;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9260
Lnet/minecraft/class_2172;method_9260(Ljava/lang/String;Ljava/util/Collection;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Predicate;)Ljava/util/concurrent/CompletableFuture;
named suggestPositions
Lnet/minecraft/command/CommandSource;suggestPositions(Ljava/lang/String;Ljava/util/Collection;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Predicate;)Ljava/util/concurrent/CompletableFuture;
-
suggestColumnPositions
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestColumnPositions(String remaining, Collection<CommandSource.RelativePosition> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Predicate<String> predicate) - Mappings:
Namespace Name Mixin selector official b
Ldt;b(Ljava/lang/String;Ljava/util/Collection;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Predicate;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9252
Lnet/minecraft/class_2172;method_9252(Ljava/lang/String;Ljava/util/Collection;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Predicate;)Ljava/util/concurrent/CompletableFuture;
named suggestColumnPositions
Lnet/minecraft/command/CommandSource;suggestColumnPositions(Ljava/lang/String;Ljava/util/Collection;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Predicate;)Ljava/util/concurrent/CompletableFuture;
-
suggestMatching
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestMatching(Iterable<String> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Mappings:
Namespace Name Mixin selector official b
Ldt;b(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9265
Lnet/minecraft/class_2172;method_9265(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named suggestMatching
Lnet/minecraft/command/CommandSource;suggestMatching(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
suggestMatching
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestMatching(Stream<String> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Mappings:
Namespace Name Mixin selector official b
Ldt;b(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9264
Lnet/minecraft/class_2172;method_9264(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named suggestMatching
Lnet/minecraft/command/CommandSource;suggestMatching(Ljava/util/stream/Stream;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
suggestMatching
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestMatching(String[] candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Mappings:
Namespace Name Mixin selector official a
Ldt;a([Ljava/lang/String;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9253
Lnet/minecraft/class_2172;method_9253([Ljava/lang/String;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named suggestMatching
Lnet/minecraft/command/CommandSource;suggestMatching([Ljava/lang/String;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
suggestMatching
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestMatching(Iterable<T> candidates, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Function<T, String> suggestionText, Function<T, com.mojang.brigadier.Message> tooltip) - Mappings:
Namespace Name Mixin selector official b
Ldt;b(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
intermediary method_35510
Lnet/minecraft/class_2172;method_35510(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
named suggestMatching
Lnet/minecraft/command/CommandSource;suggestMatching(Ljava/lang/Iterable;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
-
shouldSuggest
Returns if a candidate should be suggested.Returns
true
if theremaining
starts withcandidate
or contains"_" + candidate
- Returns:
- if a candidate should be suggested
- Mappings:
Namespace Name Mixin selector official a
Ldt;a(Ljava/lang/String;Ljava/lang/String;)Z
intermediary method_27136
Lnet/minecraft/class_2172;method_27136(Ljava/lang/String;Ljava/lang/String;)Z
named shouldSuggest
Lnet/minecraft/command/CommandSource;shouldSuggest(Ljava/lang/String;Ljava/lang/String;)Z
-